mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
init crate
This commit is contained in:
parent
60bc4d37e0
commit
4c32be1e63
4 changed files with 36 additions and 1 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
Cargo.lock
|
||||||
|
target
|
||||||
14
Cargo.toml
Normal file
14
Cargo.toml
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
[package]
|
||||||
|
name = "ggemini"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
license = "MIT"
|
||||||
|
readme = "README.md"
|
||||||
|
description = "Glib-oriented client for Gemini protocol"
|
||||||
|
keywords = ["gemini", "gemini-protocol", "gtk", "gio", "client"]
|
||||||
|
categories = ["development-tools", "network-programming"]
|
||||||
|
repository = "https://github.com/YGGverse/ggemini"
|
||||||
|
|
||||||
|
[dependencies.gtk]
|
||||||
|
package = "gtk4"
|
||||||
|
version = "0.9.1"
|
||||||
|
|
@ -1,2 +1,7 @@
|
||||||
# ggemini
|
# ggemini
|
||||||
Glib-oriented client for Gemini protocol
|
|
||||||
|
Glib-oriented client for [Gemini protocol](https://geminiprotocol.net/)
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> Project in development!
|
||||||
|
>
|
||||||
14
src/lib.rs
Normal file
14
src/lib.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
pub fn add(left: u64, right: u64) -> u64 {
|
||||||
|
left + right
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn it_works() {
|
||||||
|
let result = add(2, 2);
|
||||||
|
assert_eq!(result, 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue