Skip to content

Commit

Permalink
exclude broken crates for now
Browse files Browse the repository at this point in the history
  • Loading branch information
y21 committed Jun 10, 2024
1 parent 7e54356 commit ba9684c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 37 deletions.
15 changes: 1 addition & 14 deletions Cargo.lock

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

7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ members = [
"crates/dash_core",
"cli",
"testrunner",
"crates/dash_wasm",
"crates/dash_regex",
"crates/dash_proc_macro",
"crates/dash_rt",
"crates/dash_dlloader",
"crates/dash_llvm_jit_backend",
"crates/dash_decompiler",
"crates/dash_rt_modules",
"crates/dash_rt_http",
Expand All @@ -26,6 +24,11 @@ members = [
"crates/dash_rt_net",
"crates/dash_typed_cfg",
"crates/dash_node_impl",
# "basically dead" crates (need substantial effort to get them up and running again, fell behind with too many internal changes):
# (commented out so the project can be built in the root dir)
#
# "crates/dash_wasm",
# "crates/dash_llvm_jit_backend",
]
resolver = "2"

Expand Down
5 changes: 1 addition & 4 deletions cli/Cargo.toml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ nodejs = ["dash_node_impl"]
stress_gc = ["dash_vm/stress_gc"]

[dependencies]
dash_node_impl = { path = "../crates/dash_node_impl", optional = true }
anyhow = "1.0"
clap = { version = "3.0.0", features = ["std"], default-features = false }
rustyline = "9.1.2"
Expand All @@ -20,10 +21,6 @@ dash_vm = { path = "../crates/dash_vm", features = [] }
dash_middle = { path = "../crates/dash_middle", features = ["format"] }
dash_optimizer = { path = "../crates/dash_optimizer" }
dash_decompiler = { path = "../crates/dash_decompiler" }
dash_node_impl = { path = "../crates/dash_node_impl", optional = true, features = [
"fs",
"fetch",
] }
dash_rt_modules = { path = "../crates/dash_rt_modules", features = [
"http",
"fs",
Expand Down
8 changes: 2 additions & 6 deletions crates/dash_node_impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
fetch = ["dash_rt_fetch"]
fs = ["dash_rt_fs"]
path = []
events = []

[dependencies]
dash_middle = { path = "../dash_middle" }
Expand All @@ -23,6 +19,6 @@ serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.24.0", features = ["full"] }
dash_proc_macro = { path = "../dash_proc_macro" }
rustc-hash = "1.1.0"
dash_rt_fs = { path = "../dash_rt_fs", optional = true }
dash_rt_fetch = { path = "../dash_rt_fetch", optional = true }
dash_rt_fs = { path = "../dash_rt_fs" }
dash_rt_fetch = { path = "../dash_rt_fetch" }
dash_log = { path = "../dash_log" }
11 changes: 0 additions & 11 deletions crates/dash_node_impl/src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ macro_rules! check_module {
$arg:expr;
$sc:expr;
$(
#[$($attr:meta)*]
$sym:expr => ($cache:expr, $init:expr)
),*
) => {
Expand Down Expand Up @@ -40,25 +39,15 @@ pub fn load_native_module(sc: &mut LocalScope<'_>, arg: JsString) -> Result<Opti
check_module! {
arg.sym();
sc;
#[cfg(feature = "fs")]
state.sym.fs => (state_mut(sc).fs_cache, dash_rt_fs::sync::init_module),
#[cfg(feature = "fetch")]
state.sym.fetch => (state_mut(sc).fetch_cache, dash_rt_fetch::init_module),
#[cfg(feature = "path")]
state.sym.path => (state_mut(sc).path_cache, crate::path::init_module),
#[cfg(feature = "events")]
state.sym.events => (state_mut(sc).events_cache, crate::events::init_module),
#[]
state.sym.stream => (state_mut(sc).stream_cache, init_stream),
#[]
state.sym.http => (state_mut(sc).http_cache, init_dummy_empty_module),
#[]
state.sym.https => (state_mut(sc).https_cache, init_dummy_empty_module),
#[]
state.sym.url => (state_mut(sc).url_cache, init_dummy_empty_module),
#[]
state.sym.zlib => (state_mut(sc).zlib_cache, init_dummy_empty_module),
#[]
state.sym.punycode => (state_mut(sc).punycode_cache, init_dummy_empty_module)
}
}
Expand Down

0 comments on commit ba9684c

Please sign in to comment.