tangled
alpha
login
or
join now
footnotes.social
/
core
10
fork
atom
Link aggregation and post comments on ATProto!
10
fork
atom
overview
issues
1
pulls
pipelines
lexicon: Initialize project
isaaccorbrey.com
5 months ago
15b6e777
f44aa226
verified
This commit was signed with the committer's
known signature
.
isaaccorbrey.com
SSH Key Fingerprint:
SHA256:mwogCTZEXIXrYk4l7PaavTNPxe1Xqjf5jMIBe0LvAHU=
+21
-1
3 changed files
expand all
collapse all
unified
split
Cargo.toml
footnotes_lexicon
Cargo.toml
src
lib.rs
+1
-1
Cargo.toml
···
4
4
edition = "2024"
5
5
6
6
[workspace]
7
7
-
members = ["footnotes_appview", "footnotes_core"]
7
7
+
members = ["footnotes_appview", "footnotes_core", "footnotes_lexicon"]
8
8
resolver = "2"
+6
footnotes_lexicon/Cargo.toml
···
1
1
+
[package]
2
2
+
name = "footnotes_lexicon"
3
3
+
version = "0.1.0"
4
4
+
edition = "2024"
5
5
+
6
6
+
[dependencies]
+14
footnotes_lexicon/src/lib.rs
···
1
1
+
pub fn add(left: u64, right: u64) -> u64 {
2
2
+
left + right
3
3
+
}
4
4
+
5
5
+
#[cfg(test)]
6
6
+
mod tests {
7
7
+
use super::*;
8
8
+
9
9
+
#[test]
10
10
+
fn it_works() {
11
11
+
let result = add(2, 2);
12
12
+
assert_eq!(result, 4);
13
13
+
}
14
14
+
}