Skip to content

Commit 4817197

Browse files
DSL-108 Upgrade SpacetimeDB to 1.12 (#111)
* Bump SpacetimeDB version to 1.12 * add uuid table stub * Bump version to 0.17.0
1 parent 2883104 commit 4817197

File tree

7 files changed

+37
-18
lines changed

7 files changed

+37
-18
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Tamaro Skaljic<mail@tamaro-skaljic.de>"]
33
name = "spacetimedsl"
4-
version = "0.16.0"
4+
version = "0.17.0"
55
edition = "2024"
66
description = "Ergonomic DSL for SpacetimeDB"
77
documentation = "https://docs.rs/spacetimedsl"
@@ -14,10 +14,10 @@ readme = "README.md"
1414

1515
[dependencies]
1616
# https://crates.io/crates/spacetimedb Easy support for interacting between SpacetimeDB and Rust.
17-
spacetimedb = { version = "1.11.3", features = ["unstable"] }
17+
spacetimedb = { version = "1.12.0", features = ["unstable"] }
1818

1919
# https://crates.io/crates/spacetimedsl_derive Macros to extend SpacetimeDSL
20-
spacetimedsl_derive = { version = "0.16.0", path = "derive" }
20+
spacetimedsl_derive = { version = "0.17.0", path = "derive" }
2121

2222
# https://crates.io/crates/itertools Extra iterator adaptors, iterator methods, free functions, and macros.
2323
itertools = "^0.14"

derive-input/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Tamaro Skaljic<mail@tamaro-skaljic.de>"]
33
name = "spacetimedsl_derive-input"
4-
version = "0.16.0"
4+
version = "0.17.0"
55
edition = "2024"
66
description = "Contains structs which represent the input and output of SpacetimeDSL. Can be used by other proc-macro crates to build Macros which utilize SpacetimeDSL under the hood."
77
documentation = "https://docs.rs/spacetimedsl_derive-input"
@@ -29,7 +29,7 @@ quote = "1"
2929
itertools = "0.14.0"
3030

3131
# https://crates.io/crates/spacetimedb Easy support for interacting between SpacetimeDB and Rust.
32-
spacetimedb = { version = "1.11.3", features = ["unstable"] }
32+
spacetimedb = { version = "1.12.0", features = ["unstable"] }
3333

3434
# https://crates.io/crates/spacetime-bindings-macro-input Unofficial Input Crate for the SpacetimeDB Macro Bindings.
3535
spacetime-bindings-macro-input = "1.6.0"

derive/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Tamaro Skaljic<mail@tamaro-skaljic.de>"]
33
name = "spacetimedsl_derive"
4-
version = "0.16.0"
4+
version = "0.17.0"
55
edition = "2024"
66
description = "Macros to extend SpacetimeDSL. You shouldn't depend on this directly and instead use the spacetimedsl crate."
77
documentation = "https://docs.rs/spacetimedsl_derive"
@@ -35,4 +35,4 @@ rust-format = { version = "0.3.4", features = [
3535
] }
3636

3737
# https://crates.io/crates/spacetimedsl_derive-input Contains structs which represent the output of SpacetimeDSL. Can be used by other proc-macro crates to build Macros which utilize SpacetimeDSL under the hood.
38-
spacetimedsl_derive-input = { version = "0.16.0", path = "../derive-input" }
38+
spacetimedsl_derive-input = { version = "0.17.0", path = "../derive-input" }

examples/blackholio/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "spacetimedsl_blackholio"
3-
version = "0.16.0"
3+
version = "0.17.0"
44
edition = "2024"
55
publish = false
66

@@ -9,10 +9,10 @@ crate-type = ["cdylib"]
99

1010
[dependencies]
1111
# https://crates.io/crates/spacetimedb Easy support for interacting between SpacetimeDB and Rust.
12-
spacetimedb = { version = "1.11.3", features = ["unstable"] }
12+
spacetimedb = { version = "1.12.0", features = ["unstable"] }
1313

1414
# https://crates.io/crates/spacetimedsl Ergonomic DSL for SpacetimeDB
15-
spacetimedsl = { version = "0.16.0", path = "../.." }
15+
spacetimedsl = { version = "0.17.0", path = "../.." }
1616

1717
# https://crates.io/crates/log A lightweight logging facade for Rust
1818
log = "0.4"

examples/test/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "spacetimedsl_test"
3-
version = "0.16.0"
3+
version = "0.17.0"
44
edition = "2024"
55
publish = false
66

@@ -12,7 +12,7 @@ crate-type = ["cdylib"]
1212
proc-macro2 = { version = "1", features = ["span-locations"] }
1313

1414
# https://crates.io/crates/spacetimedb Easy support for interacting between SpacetimeDB and Rust.
15-
spacetimedb = { version = "1.11.3", features = ["unstable"] }
15+
spacetimedb = { version = "1.12.0", features = ["unstable"] }
1616

1717
# https://crates.io/crates/syn Parser for Rust source code
1818
syn = { default-features = false, features = [
@@ -22,7 +22,7 @@ syn = { default-features = false, features = [
2222
], version = "2" }
2323

2424
# https://crates.io/crates/spacetimedsl Ergonomic DSL for SpacetimeDB
25-
spacetimedsl = { version = "0.16.0", path = "../.." }
25+
spacetimedsl = { version = "0.17.0", path = "../.." }
2626

2727
# https://crates.io/crates/log A lightweight logging facade for Rust
2828
log = "0.4"

examples/test/src/lib.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,25 @@ pub mod component {
471471
}
472472
}
473473

474+
pub mod uuid_test {
475+
// FIXME: use spacetimedb::Uuid;
476+
477+
#[spacetimedsl::dsl(
478+
plural_name = uuid_holders1,
479+
method(update = true),
480+
)]
481+
#[spacetimedb::table(
482+
name = uuid_holder1,
483+
public,
484+
)]
485+
pub struct UuidHolder1 {
486+
#[primary_key]
487+
#[create_wrapper]
488+
// FIXME: the trait bound `spacetimedb::Uuid: Default` is not satisfied. the trait `Default` is not implemented for `spacetimedb::Uuid`rustcClick for full compiler diagnostic. lib.rs(168, 40): required by a bound in `spacetimedsl::Wrapper`
489+
id: u128,
490+
}
491+
}
492+
474493
pub mod hook_test {
475494
use spacetimedb::Timestamp;
476495

0 commit comments

Comments
 (0)