Skip to content

Commit

Permalink
Added Send/Sync/Clone to a bunch of types.
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualritz committed Oct 27, 2023
1 parent 4a09601 commit c2173c6
Show file tree
Hide file tree
Showing 19 changed files with 262 additions and 265 deletions.
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,45 @@
# Changelog

## 0.8.0

### `nsi-core`

* `Context::render_control()` now takes `nsi::Action` as fist
parameter.
This change was made to reflect the fact that the action cannot
be omitted. The 2nd parameter is the familiar `Option<&ArgSlice>`.

I.e. this:

```rust
ctx.render_control(&[nsi::string!("action", "start")]);
```

changes to:

```rust
ctx.render_control(nsi::Action::Start, None);
```

* All `Arg` types now implement `Clone`.

* `Pointer` & `Pointers` have been deprecated. You should be able to do
everything via `Reference` & `Refererences`.

* The following types are now `Send` & `Sync`:

* Callbacks with static lifetimes (`Callback<'static>`).

* References with static lifetimes (`Reference<'static>`).

* `Strings`

## 0.7.0

### `nsi-core`

* `Context` is now `Send`, `Sync`, `Copy` & `Clone`.

* All `Context` methods that have optional arguments now take `Option<&ArgSlice>` (instead of `&ArgSlice`).

I.e. this:
Expand Down
18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nsi"
version = "0.7.2"
version = "0.8.0"
authors = ["Moritz Moeller <[email protected]>"]
edition = "2021"
keywords = ["graphics", "rendering", "3d", "ray-tracing", "scene-description"]
Expand Down Expand Up @@ -39,18 +39,18 @@ nightly = ["nsi-core/nightly"]
ustr = ["nsi-core/ustr_handles"]

[dependencies]
nsi-3delight = { version = "0.7", path = "crates/nsi-3delight", optional = true }
nsi-core = { version = "0.7", path = "crates/nsi-core" }
nsi-jupyter = { version = "0.7", path = "crates/nsi-jupyter", optional = true }
nsi-toolbelt = { version = "0.7", path = "crates/nsi-toolbelt", optional = true }
nsi-3delight = { version = "0.8", path = "crates/nsi-3delight", optional = true }
nsi-core = { version = "0.8", path = "crates/nsi-core" }
nsi-jupyter = { version = "0.8", path = "crates/nsi-jupyter", optional = true }
nsi-toolbelt = { version = "0.8", path = "crates/nsi-toolbelt", optional = true }

[dev-dependencies]
dl-openvdb-query = "0.1"
exr = "1.6"
nsi-3delight = { version = "0.7", path = "crates/nsi-3delight" }
nsi-toolbelt = { version = "0.7", path = "crates/nsi-toolbelt" }
exr = "1.71"
nsi-3delight = { version = "0.8", path = "crates/nsi-3delight" }
nsi-toolbelt = { version = "0.8", path = "crates/nsi-toolbelt" }
png = "0.17"
#polyhedron-ops = { version = "0.2.7", features = ["nsi"] }
polyhedron-ops = { version = "0.2.7", features = ["nsi"], path = "../polyhedron-ops" }

[[example]]
path = "examples/interactive/main.rs"
Expand Down
6 changes: 3 additions & 3 deletions crates/nsi-3delight/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nsi-3delight"
version = "0.7.0"
version = "0.8.0"
authors = ["Moritz Moeller <[email protected]>"]
edition = "2021"
keywords = ["graphics", "rendering", "3d", "ray-tracing", "3delight"]
Expand All @@ -13,5 +13,5 @@ documentation = "https://docs.rs/nsi-3delight/"
repository = "https://github.com/virtualritz/nsi-3delight/"

[dependencies]
nsi-core = { version = "0.7.0", path = "../nsi-core" }
nsi-toolbelt = { version = "0.7.0", path = "../nsi-toolbelt" }
nsi-core = { version = "0.8", path = "../nsi-core" }
nsi-toolbelt = { version = "0.8", path = "../nsi-toolbelt" }
14 changes: 7 additions & 7 deletions crates/nsi-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nsi-core"
version = "0.7.2"
version = "0.8.0"
authors = ["Moritz Moeller <[email protected]>"]
edition = "2021"
keywords = ["graphics", "rendering", "3d", "ray-tracing", "scene-description"]
Expand Down Expand Up @@ -32,16 +32,16 @@ ustr_handles = []
reqwest = { version = "0.11", features = ["blocking"], optional = true }

[dependencies]
dlopen2 = { version = "0.4", optional = true }
dlopen2 = { version = "0.6", optional = true }
enum_dispatch = "0.3"
lazy_static = "1.4"
log = "0.4.17"
log = "0.4.20"
ndspy-sys = { version = "0.2", optional = true }
nsi-sys = { version = "0.7", path = "../nsi-sys" }
null-terminated-str = "0.1.4"
num_enum = "0.6"
null-terminated-str = "0.1"
num_enum = "0.7"
rclite = "0.2"
ustr = "0.9"
ustr = "0.10"

[package.metadata.docs.rs]
features = ["download_lib3delight", "output", "toolbelt", "delight", "jupyter"]
features = ["output", "nightly"]
Loading

0 comments on commit c2173c6

Please sign in to comment.