This commit is contained in:
despiegk 2025-04-09 06:20:35 +02:00
parent a057b6c8b3
commit b93894632a
5 changed files with 30 additions and 0 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ Cargo.lock
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
doctreegolang/

6
doctree/Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[package]
name = "doctree"
version = "0.1.0"
edition = "2024"
[dependencies]

14
doctree/src/lib.rs Normal file
View 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);
}
}

6
doctreecmd/Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[package]
name = "doctreecmd"
version = "0.1.0"
edition = "2024"
[dependencies]

3
doctreecmd/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}