Skip to content

Commit d9e0a26

Browse files
authored
refactor: restructure major crates part 1 (#461)
* chore: update dependencies * chore: update `Cargo.lock` * chore: enable deno workspace feature * chore: update `types/global.d.ts` * chore: update sample main script * chore: update integration test samples * refactor: retouch major crates * stamp: polishing * stamp: polishing
1 parent ed11fea commit d9e0a26

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3583
-2391
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/base/Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,6 @@ sb_os = { version = "0.1.0", path = "../sb_os" }
131131
sb_node = { version = "0.1.0", path = "../node" }
132132
sb_ai = { version = "0.1.0", path = "../sb_ai" }
133133

134-
anyhow.workspace = true
135-
bytes.workspace = true
136-
hyper = { workspace = true, features = ["full"] }
137-
http_v02.workspace = true
138-
log.workspace = true
139-
serde = { workspace = true, features = ["derive"] }
140-
tokio.workspace = true
141134
url.workspace = true
142135

143136
[features]

crates/base/src/commands.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::{
22
inspector_server::Inspector,
3-
rt_worker::{worker_ctx::TerminationToken, worker_pool::WorkerPoolPolicy},
4-
server::{Server, ServerFlags, ServerHealth, Tls, WorkerEntrypoints},
3+
server::{Server, ServerFlags, ServerHealth, SignumOrExitCode, Tls, WorkerEntrypoints},
4+
worker::{pool::WorkerPoolPolicy, TerminationToken},
55
InspectorOption,
66
};
77
use anyhow::Error;
@@ -26,7 +26,7 @@ pub async fn start_server(
2626
inspector_option: Option<InspectorOption>,
2727
jsx_specifier: Option<String>,
2828
jsx_module: Option<String>,
29-
) -> Result<Option<i32>, Error> {
29+
) -> Result<Option<SignumOrExitCode>, Error> {
3030
let mut server = Server::new(
3131
ip,
3232
port,

0 commit comments

Comments
 (0)