Skip to content

Commit

Permalink
Add os to main crate
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed Nov 19, 2024
1 parent 75f2cd3 commit 3dd8708
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ readme = "README.md"

[features]
default = ["all"]
all = ["timers", "url", "console", "sqlite"]
all = ["timers", "url", "console", "sqlite", "os"]

timers = ["rquickjs-extra-timers"]
os = ["rquickjs-extra-os"]
url = ["rquickjs-extra-url"]
console = ["rquickjs-extra-console"]
sqlite = ["rquickjs-extra-sqlite"]

[dependencies]
rquickjs-extra-console = { path = "modules/console", optional = true }
rquickjs-extra-os = { path = "modules/os", optional = true }
rquickjs-extra-sqlite = { path = "modules/sqlite", optional = true }
rquickjs-extra-timers = { path = "modules/timers", optional = true }
rquickjs-extra-url = { path = "modules/url", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion modules/timers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
[dependencies]
log = { version = "0.4" }
rquickjs = { version = "0.6", features = ["macro", "futures"] }
tokio = { version = "1", features = ["time"] }
tokio = { version = "1", features = ["time", "macros"] }

[dev-dependencies]
futures = { version = "0.3" }
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#[cfg(feature = "console")]
pub use rquickjs_extra_console as console;

#[cfg(feature = "os")]
pub use rquickjs_extra_os as os;

#[cfg(feature = "sqlite")]
pub use rquickjs_extra_sqlite as sqlite;

Expand Down

0 comments on commit 3dd8708

Please sign in to comment.