Skip to content

Commit

Permalink
fix(wasm): get things working on wasm again!
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Sep 27, 2023
1 parent b5d7c54 commit ec9e6e3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
17 changes: 2 additions & 15 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -150,7 +150,7 @@ url = "2.3.1"
walkdir = "2.3.2"
wasm-bindgen = "0.2.84"
wasm-bindgen-futures = "0.4.34"
wasm-streams = "0.2.3"
wasm-streams = "0.3.0"
which = "4.0.2"
wiremock = "0.5.17"
reqwest-retry = "0.2.2"
Expand Down
1 change: 1 addition & 0 deletions crates/node-maintainer/src/lib.rs
Expand Up @@ -8,6 +8,7 @@ pub use nassun::{NassunError, NassunOpts};
pub use error::*;
pub use into_kdl::IntoKdl;
pub use lockfile::*;
#[cfg(not(target_arch = "wasm32"))]
pub use maintainer::*;
#[cfg(target_arch = "wasm32")]
mod wasm;
Expand Down
3 changes: 3 additions & 0 deletions crates/node-maintainer/src/maintainer.rs
Expand Up @@ -20,7 +20,10 @@ use crate::{IntoKdl, Lockfile};

pub const DEFAULT_CONCURRENCY: usize = 50;
pub const DEFAULT_SCRIPT_CONCURRENCY: usize = 6;

#[cfg(not(target_arch = "wasm32"))]
pub const META_FILE_NAME: &str = ".orogene-meta.kdl";
#[cfg(not(target_arch = "wasm32"))]
pub const STORE_DIR_NAME: &str = ".oro-store";

pub type ProgressAdded = Arc<dyn Fn() + Send + Sync>;
Expand Down
3 changes: 2 additions & 1 deletion crates/node-maintainer/src/resolver.rs
Expand Up @@ -23,7 +23,8 @@ use crate::error::NodeMaintainerError;
use crate::graph::{DepType, Edge, Graph, Node};
#[cfg(not(target_arch = "wasm32"))]
use crate::META_FILE_NAME;
use crate::{Lockfile, LockfileNode, ProgressAdded, ProgressHandler};
use crate::{Lockfile, LockfileNode};
use crate::maintainer::{ProgressAdded, ProgressHandler};

#[derive(Debug, Clone)]
struct NodeDependency {
Expand Down

0 comments on commit ec9e6e3

Please sign in to comment.