Remove runner from workspace

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2024-02-21 20:15:36 +03:00
parent b082b645f0
commit debff608d2
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C
3 changed files with 20 additions and 18 deletions

View file

@ -1,4 +1,3 @@
workspace = { members = [ "runner" ] }
[package]
name = "binhost"
@ -13,16 +12,8 @@ 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
ed25519-compact = { version = "2.0.6", default-features = false, features = [
"random",
"self-verify",
"std",
] }

View file

@ -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"
# 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

View file

@ -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,