diff --git a/Cargo.toml b/Cargo.toml index 824e407..bd3fb7c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,3 @@ -workspace = { members = [ "runner" ] } [package] name = "binhost" @@ -12,17 +11,9 @@ description = "HTTP server to easily serve files" clap = { version = "4.4.18", features = ["derive"] } rocket = "0.5.0" serde = { version = "1.0", features = ["derive"] } -sha2 = { version = "0.10"} -ed25519-compact = { version = "2.0.6", default-features = false, features = [ "random", "self-verify", "std"] } - -# Reducing size as much as possible -[profile.release] -strip = true -opt-level = "s" -lto = true -panic = "abort" -codegen-units = 1 - -[profile.dev] -# Doesn't build on my machine without -opt-level = 1 +sha2 = { version = "0.10" } +ed25519-compact = { version = "2.0.6", default-features = false, features = [ + "random", + "self-verify", + "std", +] } diff --git a/runner/Cargo.toml b/runner/Cargo.toml index 7617e0a..df6a9cd 100644 --- a/runner/Cargo.toml +++ b/runner/Cargo.toml @@ -3,9 +3,19 @@ name = "runner" version = "0.1.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] libc = { version = "0.2.152", default-features = false } ed25519-compact = { version = "2.0.6", default-features = false } -numtoa = "0.2.4" \ No newline at end of file +numtoa = "0.2.4" + +# Reducing size as much as possible +[profile.release] +strip = true +opt-level = "s" +lto = true +panic = "abort" +codegen-units = 1 + +[profile.dev] +# Doesn't build on my machine without +opt-level = 1 diff --git a/runner/src/main.rs b/runner/src/main.rs index 63537bb..ac39701 100644 --- a/runner/src/main.rs +++ b/runner/src/main.rs @@ -19,6 +19,7 @@ pub unsafe extern "C" fn main(_argc: i32, _argv: *const *const c_char) -> i32 { printf("Starting runner\n\0".as_bytes().as_ptr() as *const c_char); let mut buff_public_key = [0_u8; PUBKEY_LEN]; + let a = 0; read( open("public_key\0".as_bytes().as_ptr() as *const c_char, O_RDONLY), buff_public_key.as_mut_ptr() as *mut c_void,