From 3e6f7ca46b0b7516b259d617c23edb5ed4c701be Mon Sep 17 00:00:00 2001 From: iris Date: Mon, 17 Aug 2026 09:46:41 +0200 Subject: [PATCH] first commit --- .gitignore | 15 +++++++++ Cargo.lock | 79 ++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 7 ++++ backend/Cargo.lock | 72 ++++++++++++++++++++++++++++++++++++++++++ backend/Cargo.toml | 7 ++++ backend/src/lib.rs | 14 ++++++++ src/main.rs | 7 ++++ 7 files changed, 201 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 backend/Cargo.lock create mode 100644 backend/Cargo.toml create mode 100644 backend/src/lib.rs create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..15398c4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +/target +tests/ +saves/ +*.z64 +*.n64 +*.v64 +*.Z64 +*.N64 +*.V64 +*.bin +*.dump +*.data +disasm.txt +*log*.txt +*.log diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..e0af456 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,79 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "backend" +version = "0.1.0" +dependencies = [ + "proc-bitfield", +] + +[[package]] +name = "proc-bitfield" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb5041a3f8b230c2078ab917516d352f40625245d4c953472eacbe075051c4b7" +dependencies = [ + "proc-bitfield-macros", + "static_assertions", +] + +[[package]] +name = "proc-bitfield-macros" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b34b74711e53c2ff9c879e7a22c6c8dbac847ef2b11c2d69296a890e12a243a" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rs64" +version = "0.1.0" +dependencies = [ + "backend", +] + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..6c92e6b --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "rs64" +version = "0.1.0" +edition = "2024" + +[dependencies] +backend = { path = "backend/" } diff --git a/backend/Cargo.lock b/backend/Cargo.lock new file mode 100644 index 0000000..bce6491 --- /dev/null +++ b/backend/Cargo.lock @@ -0,0 +1,72 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "backend" +version = "0.1.0" +dependencies = [ + "proc-bitfield", +] + +[[package]] +name = "proc-bitfield" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb5041a3f8b230c2078ab917516d352f40625245d4c953472eacbe075051c4b7" +dependencies = [ + "proc-bitfield-macros", + "static_assertions", +] + +[[package]] +name = "proc-bitfield-macros" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b34b74711e53c2ff9c879e7a22c6c8dbac847ef2b11c2d69296a890e12a243a" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" diff --git a/backend/Cargo.toml b/backend/Cargo.toml new file mode 100644 index 0000000..31e8ba8 --- /dev/null +++ b/backend/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "backend" +version = "0.1.0" +edition = "2024" + +[dependencies] +proc-bitfield = "0.5.3" diff --git a/backend/src/lib.rs b/backend/src/lib.rs new file mode 100644 index 0000000..b93cf3f --- /dev/null +++ b/backend/src/lib.rs @@ -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); + } +} diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..b601939 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,7 @@ +#![allow(unused_imports)] + +use backend::add; + +fn main() { + println!("Hello, world!"); +}