Beatsaber Rust Utilities: A Beatsaber V3 parsing library.
beatsaber beatmap
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Init

AlephCubed c324b467

+127
+1
.gitignore
··· 1 + /target
+8
.idea/.gitignore
··· 1 + # Default ignored files 2 + /shelf/ 3 + /workspace.xml 4 + # Editor-based HTTP Client requests 5 + /httpRequests/ 6 + # Datasource local storage ignored files 7 + /dataSources/ 8 + /dataSources.local.xml
+96
Cargo.lock
··· 1 + # This file is automatically @generated by Cargo. 2 + # It is not intended for manual editing. 3 + version = 4 4 + 5 + [[package]] 6 + name = "bsru" 7 + version = "0.1.0" 8 + dependencies = [ 9 + "serde", 10 + "serde_json", 11 + ] 12 + 13 + [[package]] 14 + name = "itoa" 15 + version = "1.0.15" 16 + source = "registry+https://github.com/rust-lang/crates.io-index" 17 + checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" 18 + 19 + [[package]] 20 + name = "memchr" 21 + version = "2.7.5" 22 + source = "registry+https://github.com/rust-lang/crates.io-index" 23 + checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" 24 + 25 + [[package]] 26 + name = "proc-macro2" 27 + version = "1.0.95" 28 + source = "registry+https://github.com/rust-lang/crates.io-index" 29 + checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" 30 + dependencies = [ 31 + "unicode-ident", 32 + ] 33 + 34 + [[package]] 35 + name = "quote" 36 + version = "1.0.40" 37 + source = "registry+https://github.com/rust-lang/crates.io-index" 38 + checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" 39 + dependencies = [ 40 + "proc-macro2", 41 + ] 42 + 43 + [[package]] 44 + name = "ryu" 45 + version = "1.0.20" 46 + source = "registry+https://github.com/rust-lang/crates.io-index" 47 + checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" 48 + 49 + [[package]] 50 + name = "serde" 51 + version = "1.0.219" 52 + source = "registry+https://github.com/rust-lang/crates.io-index" 53 + checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" 54 + dependencies = [ 55 + "serde_derive", 56 + ] 57 + 58 + [[package]] 59 + name = "serde_derive" 60 + version = "1.0.219" 61 + source = "registry+https://github.com/rust-lang/crates.io-index" 62 + checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" 63 + dependencies = [ 64 + "proc-macro2", 65 + "quote", 66 + "syn", 67 + ] 68 + 69 + [[package]] 70 + name = "serde_json" 71 + version = "1.0.140" 72 + source = "registry+https://github.com/rust-lang/crates.io-index" 73 + checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" 74 + dependencies = [ 75 + "itoa", 76 + "memchr", 77 + "ryu", 78 + "serde", 79 + ] 80 + 81 + [[package]] 82 + name = "syn" 83 + version = "2.0.104" 84 + source = "registry+https://github.com/rust-lang/crates.io-index" 85 + checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40" 86 + dependencies = [ 87 + "proc-macro2", 88 + "quote", 89 + "unicode-ident", 90 + ] 91 + 92 + [[package]] 93 + name = "unicode-ident" 94 + version = "1.0.18" 95 + source = "registry+https://github.com/rust-lang/crates.io-index" 96 + checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
+8
Cargo.toml
··· 1 + [package] 2 + name = "bsru" 3 + version = "0.1.0" 4 + edition = "2024" 5 + 6 + [dependencies] 7 + serde = { version = "1.0.219", features = ["derive"] } 8 + serde_json = "1.0.140"
+14
src/lib.rs
··· 1 + pub fn add(left: u64, right: u64) -> u64 { 2 + left + right 3 + } 4 + 5 + #[cfg(test)] 6 + mod tests { 7 + use super::*; 8 + 9 + #[test] 10 + fn it_works() { 11 + let result = add(2, 2); 12 + assert_eq!(result, 4); 13 + } 14 + }