Skip to content

Commit

Permalink
Reorganize dependencies and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
DelSkayn committed Nov 19, 2024
1 parent 93a3fbe commit c175fd8
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 98 deletions.
35 changes: 15 additions & 20 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rquickjs"
version = "0.8.0"
version = "0.8.1"
authors = ["Mees Delzenne <[email protected]>", "K. <[email protected]>"]
edition = "2021"
rust-version = "1.65"
Expand All @@ -11,25 +11,6 @@ keywords = ["quickjs", "ecmascript", "javascript", "es6", "es2020"]
categories = ["api-bindings"]
repository = "https://github.com/DelSkayn/rquickjs.git"

[dependencies.rquickjs-core]
version = "0.8.0"
path = "core"

[dependencies.rquickjs-macro]
version = "0.8.0"
path = "macro"
optional = true

[dependencies.indexmap-rs]
package = "indexmap"
version = "2"
optional = true

[dependencies.either-rs]
package = "either"
version = "1"
optional = true


[workspace]
members = [
Expand All @@ -41,6 +22,20 @@ members = [
"examples/rquickjs-cli",
]

[workspace.dependencies]
rquickjs-core = { version = "0.8.1", path = "core" }
rquickjs-macro = { version = "0.8.1", path = "macro" }
rquickjs-sys= { version = "0.8.1", path = "sys" }
rquickjs = { version = "0.8.1", path = "./" }

[dependencies]
indexmap-rs = { package = "indexmap", version = "2", optional = true }
either-rs = { package = "either", version = "1", optional = true }
rquickjs-core = { workspace = true }
rquickjs-macro = { workspace = true, optional = true }



[features]
default = ["classes", "properties"]

Expand Down
65 changes: 18 additions & 47 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rquickjs-core"
version = "0.8.0"
version = "0.8.1"
authors = ["Mees Delzenne <[email protected]>", "K. <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -10,38 +10,26 @@ keywords = ["quickjs", "ecmascript", "javascript", "es6", "es2020"]
categories = ["api-bindings"]
repository = "https://github.com/DelSkayn/rquickjs.git"

[dependencies.rquickjs-sys]
version = "0.8.0"
path = "../sys"

[dependencies.phf]
version = "0.11"
optional = true

[dependencies.indexmap]
version = "2"
optional = true

[dependencies.either]
version = "1"
optional = true

[dependencies.async-lock]
version = "3"
optional = true

[dependencies.chrono]
version = "0.4"
optional = true
[package.metadata.docs.rs]
features = ["full-async", "doc-cfg"]

[dependencies.dlopen]
version = "0.1"
optional = true
[dependencies]
rquickjs-sys = { workspace = true }
phf = { version = "0.11", optional = true }
indexmap = { version = "2", optional = true }
either = { version = "1", optional = true }
async-lock = { version = "3", optional = true }
chrono = { version = "0.4", optional = true }
dlopen = { version = "0.1", optional = true }
relative-path = { version = "1.9", optional = true }

[dependencies.relative-path]
version = "1.9"
optional = true

[dev-dependencies]
futures-rs = { package = "futures", version = "0.3"}
tokio = { version = "1.0", default-features = false, features = ["rt", "rt-multi-thread", "time", "macros", "sync"] }
rquickjs = { workspace = true }
approx = "0.5"
trybuild = "1.0.23"

[features]
default = []
Expand Down Expand Up @@ -108,22 +96,5 @@ compile-tests = []
# Enable unstable doc-cfg feature (for docs.rs)
doc-cfg = []

[dev-dependencies.futures-rs]
package = "futures"
version = "0.3"

[dev-dependencies.tokio]
version = "1.0"
default-features = false
features = ["rt", "rt-multi-thread", "time", "macros", "sync"]

[dev-dependencies.rquickjs]
path = ".."

[dev-dependencies]
approx = "0.5"
trybuild = "1.0.23"

[package.metadata.docs.rs]
features = ["full-async", "doc-cfg"]

40 changes: 10 additions & 30 deletions macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rquickjs-macro"
version = "0.8.0"
version = "0.8.1"
authors = ["K. <[email protected]>", "Mees Delzenne <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -14,42 +14,22 @@ repository = "https://github.com/DelSkayn/rquickjs.git"
proc-macro = true

[dependencies]
rquickjs-core = { workspace = true, features = ["loader"] }
proc-macro2 = "1"
proc-macro-crate = "1"
quote = "1"
ident_case = "1"
fnv = "1"
indexmap = "2"
convert_case = "0.6"

[dependencies.rquickjs-core]
path = "../core"
version = "0.8.0"
features = ["loader"]

[dependencies.syn]
version = "2"
features = ["full","fold","extra-traits","visit"]

[dependencies.phf_shared]
version = "0.11"
optional = true

[dependencies.phf_generator]
version = "0.11"
optional = true

[dev-dependencies.rquickjs]
path = ".."
version = "0.8.0"
features = ["macro", "classes", "properties", "futures","phf"]

[dev-dependencies.difference]
version = "2"

[dev-dependencies.async-std]
version = "1"
features = ["attributes"]
syn = { version = "2", features = ["full","fold","extra-traits","visit"] }
phf_shared = { version = "0.11", optional = true }
phf_generator = { version = "0.11", optional = true }

[dev-dependencies]
rquickjs = { workspace = true, features = ["macro", "classes", "properties", "futures","phf"] }
difference = "2"
async-std = { version = "1", features = ["attributes"] }

[features]
phf = ["phf_shared", "phf_generator"]
Expand Down
2 changes: 1 addition & 1 deletion sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rquickjs-sys"
version = "0.8.0"
version = "0.8.1"
authors = ["Mees Delzenne <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down

0 comments on commit c175fd8

Please sign in to comment.