Skip to content

Commit

Permalink
refactor: restructure major crates part 1 (#461)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nyannyacha authored Dec 23, 2024
1 parent ed11fea commit d9e0a26
Show file tree
Hide file tree
Showing 50 changed files with 3,583 additions and 2,391 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions crates/base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,6 @@ sb_os = { version = "0.1.0", path = "../sb_os" }
sb_node = { version = "0.1.0", path = "../node" }
sb_ai = { version = "0.1.0", path = "../sb_ai" }

anyhow.workspace = true
bytes.workspace = true
hyper = { workspace = true, features = ["full"] }
http_v02.workspace = true
log.workspace = true
serde = { workspace = true, features = ["derive"] }
tokio.workspace = true
url.workspace = true

[features]
Expand Down
6 changes: 3 additions & 3 deletions crates/base/src/commands.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{
inspector_server::Inspector,
rt_worker::{worker_ctx::TerminationToken, worker_pool::WorkerPoolPolicy},
server::{Server, ServerFlags, ServerHealth, Tls, WorkerEntrypoints},
server::{Server, ServerFlags, ServerHealth, SignumOrExitCode, Tls, WorkerEntrypoints},
worker::{pool::WorkerPoolPolicy, TerminationToken},
InspectorOption,
};
use anyhow::Error;
Expand All @@ -26,7 +26,7 @@ pub async fn start_server(
inspector_option: Option<InspectorOption>,
jsx_specifier: Option<String>,
jsx_module: Option<String>,
) -> Result<Option<i32>, Error> {
) -> Result<Option<SignumOrExitCode>, Error> {
let mut server = Server::new(
ip,
port,
Expand Down
Loading

0 comments on commit d9e0a26

Please sign in to comment.