Skip to content

Commit cf44ea7

Browse files
refactor(Rest): Switch binary entry point from Library.rs to Main.rs
Update Cargo.toml to use Source/Main.rs as the binary entry point instead of Source/Library.rs. The new Main.rs provides a proper async entry point using tokio's runtime, calling into the Library::Struct::Binary::Command::Struct::Fn().Fn() chain. This establishes the correct binary structure for the Rest bundler component.
1 parent 7fbf6ac commit cf44ea7

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[[bin]]
22
name = "Rest"
3-
path = "Source/Library.rs"
3+
path = "Source/Main.rs"
44

55
[build-dependencies]
66
serde = { workspace = true, features = ["derive"] }

Source/Main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#![allow(non_snake_case)]
2+
3+
#[tokio::main]
4+
async fn main() { (Library::Struct::Binary::Command::Struct::Fn().Fn)().await }

bin/Rest

16 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)