mirror of
https://github.com/ivabus/binhost
synced 2024-11-22 07:55:05 +03:00
Remove runner
from workspace
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
b082b645f0
commit
debff608d2
3 changed files with 20 additions and 18 deletions
21
Cargo.toml
21
Cargo.toml
|
@ -1,4 +1,3 @@
|
||||||
workspace = { members = [ "runner" ] }
|
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "binhost"
|
name = "binhost"
|
||||||
|
@ -12,17 +11,9 @@ description = "HTTP server to easily serve files"
|
||||||
clap = { version = "4.4.18", features = ["derive"] }
|
clap = { version = "4.4.18", features = ["derive"] }
|
||||||
rocket = "0.5.0"
|
rocket = "0.5.0"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
sha2 = { version = "0.10"}
|
sha2 = { version = "0.10" }
|
||||||
ed25519-compact = { version = "2.0.6", default-features = false, features = [ "random", "self-verify", "std"] }
|
ed25519-compact = { version = "2.0.6", default-features = false, features = [
|
||||||
|
"random",
|
||||||
# Reducing size as much as possible
|
"self-verify",
|
||||||
[profile.release]
|
"std",
|
||||||
strip = true
|
] }
|
||||||
opt-level = "s"
|
|
||||||
lto = true
|
|
||||||
panic = "abort"
|
|
||||||
codegen-units = 1
|
|
||||||
|
|
||||||
[profile.dev]
|
|
||||||
# Doesn't build on my machine without
|
|
||||||
opt-level = 1
|
|
||||||
|
|
|
@ -3,9 +3,19 @@ name = "runner"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libc = { version = "0.2.152", default-features = false }
|
libc = { version = "0.2.152", default-features = false }
|
||||||
ed25519-compact = { version = "2.0.6", default-features = false }
|
ed25519-compact = { version = "2.0.6", default-features = false }
|
||||||
numtoa = "0.2.4"
|
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
|
||||||
|
|
|
@ -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);
|
printf("Starting runner\n\0".as_bytes().as_ptr() as *const c_char);
|
||||||
|
|
||||||
let mut buff_public_key = [0_u8; PUBKEY_LEN];
|
let mut buff_public_key = [0_u8; PUBKEY_LEN];
|
||||||
|
let a = 0;
|
||||||
read(
|
read(
|
||||||
open("public_key\0".as_bytes().as_ptr() as *const c_char, O_RDONLY),
|
open("public_key\0".as_bytes().as_ptr() as *const c_char, O_RDONLY),
|
||||||
buff_public_key.as_mut_ptr() as *mut c_void,
|
buff_public_key.as_mut_ptr() as *mut c_void,
|
||||||
|
|
Loading…
Reference in a new issue