Skip to content

Commit

Permalink
[cargo] Use parking_lot/wasm-bindgen feature through our own feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
anp committed Dec 29, 2020
1 parent 3089ecf commit dfca4be
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ reuse of arbitrary work, state change notifications, and async loaders.
- `Key::mutate` allows naive clone-update-compare access to a state variable.
- `#[moxie::updater(...)]` attribute macro supports creating a `Key` wrapper with shorthand for
mutating methods.
- `wasm-bindgen` cargo feature which enables correct usage of parking_lot on wasm32 targets.

## [0.7.0] - 2020-09-27

Expand Down
10 changes: 7 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ repository = "https://github.com/anp/moxie.git"
authors = ["Adam Perry <lol@anp.lol>"]
edition = "2018"

[features]
default = []
wasm-bindgen = [ "dyn-cache/wasm-bindgen", "parking_lot/wasm-bindgen", "topo/wasm-bindgen" ]

[dependencies]
dyn-cache = { path = "dyn-cache", version = "0.12.0"}
dyn-cache = { path = "dyn-cache", version = "0.12.1"}
futures = "0.3.5"
illicit = { path = "illicit", version = "1.1.1"}
moxie-macros = { path = "macros", version = "0.1.0-pre" }
parking_lot = { version = "0.11", features = ["wasm-bindgen"]}
parking_lot = "0.11"
scopeguard = "1"
topo = { path = "topo", version = "0.13.0"}
topo = { path = "topo", version = "0.13.1"}
tracing = "^0.1"

[dev-dependencies]
Expand Down
11 changes: 9 additions & 2 deletions dom/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ crate-type = [ "cdylib", "rlib", ]
[features]
default = ["webdom"]
rsdom = ["augdom/rsdom"]
webdom = ["augdom/webdom", "raf", "wasm-bindgen", "wasm-bindgen-futures"]
webdom = [
"augdom/webdom",
"moxie/wasm-bindgen",
"raf",
"topo/wasm-bindgen",
"wasm-bindgen",
"wasm-bindgen-futures",
]

[dependencies]
augdom = { path = "augdom", version = "0.2.0-pre", default-features = false }
Expand All @@ -32,7 +39,7 @@ illicit = { path = "../illicit", version = "1.1.1"}
moxie = { path = "../", version = "0.7.1-pre"}
paste = "1.0.0"
scopeguard = "1"
topo = { path = "../topo", version = "0.13.0"}
topo = { path = "../topo", version = "0.13.1"}

# web-only
raf = { path = "raf", version = "0.2.0-pre", optional = true }
Expand Down
6 changes: 6 additions & 0 deletions dyn-cache/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ invocations.

<!-- categories: Added, Removed, Changed, Deprecated, Fixed, Security -->

## [0.12.1] - 2020-12-28

### Added

- `wasm-bindgen` cargo feature which enables correct usage of parking_lot on wasm32 targets.

## [0.12.0] - 2020-08-09

### Changed
Expand Down
8 changes: 6 additions & 2 deletions dyn-cache/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dyn-cache"
version = "0.12.0"
version = "0.12.1"
description = "Query cache indexed by type."
categories = ["caching", "rust-patterns"]
keywords = ["incremental", "memoize", "intern", "cache"]
Expand All @@ -13,12 +13,16 @@ repository = "https://github.com/anp/moxie.git"
authors = ["Adam Perry <lol@anp.lol>"]
edition = "2018"

[features]
default = []
wasm-bindgen = [ "parking_lot/wasm-bindgen" ]

[dependencies]
downcast-rs = "1.1.1"
hash_hasher = "2.0.3"
hashbrown = "0.9.0"
illicit = { path = "../illicit", version = "1.1.1"}
parking_lot = { version = "0.11.0", features = ["wasm-bindgen"]}
parking_lot = "0.11.0"
paste = "1.0.0"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion mox/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ edition = "2018"
mox-impl = { path = "impl", version = "0.10.0"}
proc-macro-hack = "0.5"
proc-macro-nested = "0.1.3"
topo = { path = "../topo", version = "0.13.0"}
topo = { path = "../topo", version = "0.13.1"}

[dev-dependencies]
derive_builder = "0.9"
8 changes: 7 additions & 1 deletion topo/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ to implement a form of [incremental computing](https://en.wikipedia.org/wiki/Inc

<!-- categories: Added, Removed, Changed, Deprecated, Fixed, Security -->

## [0.13.1] - 2020-12-28

### Added

- `wasm-bindgen` cargo feature which enables correct usage of parking_lot on wasm32 targets.

## [0.13.0] - 2020-07-19

### Removed
Expand Down Expand Up @@ -47,7 +53,7 @@ to implement a form of [incremental computing](https://en.wikipedia.org/wiki/Inc

- #[nested] allows specifying a `slot`.
- `cache::{Cache, GlobalCache}` types for storing interned and memoized values.
- `cache::{SharedCache, SharedGlobalCache}` types for safe multiple-owner access to caches,
- `cache::{SharedCache, SharedGlobalCache}` types for safe multiple-owner access to caches,
implementing `cache_with` with careful locking to allow nested calls in the future.
- `root` free function for allowing one to re-root a call topology (i.e. if running inside of a
broader one).
Expand Down
10 changes: 7 additions & 3 deletions topo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "topo"
version = "0.13.0"
version = "0.13.1"
description = "Tools for incrementally computing repeated callgraphs."
categories = ["caching", "data-structures", "gui", "memory-management", "rust-patterns"]
keywords = ["cache", "memoize", "intern", "topology", "incremental"]
Expand All @@ -13,11 +13,15 @@ repository = "https://github.com/anp/moxie.git"
authors = ["Adam Perry <lol@anp.lol>"]
edition = "2018"

[features]
default = []
wasm-bindgen = [ "dyn-cache/wasm-bindgen", "parking_lot/wasm-bindgen" ]

[dependencies]
dyn-cache = { path = "../dyn-cache", version = "0.12.0"}
dyn-cache = { path = "../dyn-cache", version = "0.12.1"}
illicit = { path = "../illicit", version = "1.1.1"}
once_cell = "1.4.0"
parking_lot = { version = "0.11.0", features = ["wasm-bindgen"]}
parking_lot = "0.11.0"
topo-macro = { path = "macro", version = "0.10.0"}

[dev-dependencies]
Expand Down

0 comments on commit dfca4be

Please sign in to comment.