mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-12 18:57:51 -04:00
2560846f22
# Description of Changes Client Query builder for rust, as per proposal - https://github.com/clockworklabs/SpacetimeDBPrivate/pull/2356. 1. Pach moves query builder to its separate crate, so that it can be shared between module and sdk. 2. Implements `TypedSubscriptionBuilder` in `sdks/rust` as mentioned in proposal 3. Modify codegen to extend types to support query builder as mentioned in proposal 4. a test # API and ABI breaking changes NA, additive changes. # Expected complexity level and risk 2 # Testing Added a test. --------- Signed-off-by: Shubham Mishra <shivam828787@gmail.com> Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
50 lines
1.5 KiB
TOML
50 lines
1.5 KiB
TOML
[package]
|
|
name = "spacetimedb"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license-file = "LICENSE"
|
|
description = "Easy support for interacting between SpacetimeDB and Rust."
|
|
rust-version.workspace = true
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
[lib]
|
|
name = "spacetimedb" # The name of the target.
|
|
path = "src/lib.rs" # The source file of the target.
|
|
# Benching off, because of https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options
|
|
bench = false
|
|
|
|
[features]
|
|
default = ["rand"]
|
|
rand = ["rand08"]
|
|
rand08 = ["dep:rand08", "dep:getrandom02"]
|
|
unstable = ["spacetimedb-bindings-sys/unstable"]
|
|
|
|
[dependencies]
|
|
spacetimedb-bindings-sys.workspace = true
|
|
spacetimedb-lib.workspace = true
|
|
spacetimedb-bindings-macro.workspace = true
|
|
spacetimedb-primitives.workspace = true
|
|
spacetimedb-query-builder.workspace = true
|
|
|
|
anyhow.workspace = true
|
|
bytemuck.workspace = true
|
|
bytes.workspace = true
|
|
derive_more.workspace = true
|
|
http.workspace = true
|
|
log.workspace = true
|
|
scoped-tls.workspace = true
|
|
|
|
rand08 = { workspace = true, optional = true }
|
|
# we depend on getrandom and enable the `custom` feature, so that
|
|
# if someone tries to use rand's ThreadRng, it will fail to link
|
|
# because no one defined __getrandom_custom
|
|
getrandom02 = { workspace = true, optional = true, features = ["custom"] }
|
|
serde_json.workspace = true
|
|
|
|
[dev-dependencies]
|
|
insta.workspace = true
|
|
trybuild.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|