Skip to content

Commit

Permalink
Update wit-bindgen
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Levick <[email protected]>
  • Loading branch information
rylev committed Oct 10, 2023
1 parent 1574de2 commit 23dee4b
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 36 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/core/tests/core-wasi-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ edition = "2021"
debug = true

[dependencies]
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "bad91ec820adc9d4a6048a455c57f1d4138079ea" }
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "46fba30bb667a3a4962f63b1cc28b84427b49114" }

[workspace]
8 changes: 4 additions & 4 deletions crates/redis/tests/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/redis/tests/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ authors = ["Radu Matei <[email protected]>"]
crate-type = ["cdylib"]

[dependencies]
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "bad91ec820adc9d4a6048a455c57f1d4138079ea" }
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "46fba30bb667a3a4962f63b1cc28b84427b49114" }

[workspace]
2 changes: 1 addition & 1 deletion crates/trigger-http/benches/spin-http-benchmark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "bad91ec820adc9d4a6048a455c57f1d4138079ea" }
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "46fba30bb667a3a4962f63b1cc28b84427b49114" }
url = "2.4.1"

[workspace]
2 changes: 1 addition & 1 deletion crates/trigger-http/tests/rust-http-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ authors = ["Radu Matei <[email protected]>"]
crate-type = ["cdylib"]

[dependencies]
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "bad91ec820adc9d4a6048a455c57f1d4138079ea" }
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "46fba30bb667a3a4962f63b1cc28b84427b49114" }

[workspace]
8 changes: 4 additions & 4 deletions examples/spin-timer/app-example/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/spin-timer/app-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "bad91ec820adc9d4a6048a455c57f1d4138079ea" }
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "46fba30bb667a3a4962f63b1cc28b84427b49114" }

[workspace]
2 changes: 1 addition & 1 deletion sdk/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ form_urlencoded = "1.0"
http_types = { package = "http", version = "0.2" }
spin-macro = { path = "macro" }
thiserror = "1.0.37"
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "bad91ec820adc9d4a6048a455c57f1d4138079ea" }
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "46fba30bb667a3a4962f63b1cc28b84427b49114" }
routefinder = "0.5.3"
serde_json = { version = "1.0.96", optional = true }
serde = { version = "1.0.163", optional = true }
Expand Down
File renamed without changes.
8 changes: 2 additions & 6 deletions sdk/rust/src/key_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ use super::wit::v2::key_value;
#[cfg(feature = "json")]
use serde::{de::DeserializeOwned, Serialize};

/// An open key-value store
// TODO: use `#[doc(inline)]` as soon as wit-bindgen#688 is merged
pub use key_value::Store;
#[doc(inline)]
pub use key_value::{Error, Store};

impl Store {
/// Open the default store.
Expand All @@ -22,9 +21,6 @@ impl Store {
}
}

#[doc(inline)]
pub use key_value::Error;

impl Store {
#[cfg(feature = "json")]
/// Serialize the given data to JSON, then set it as the value for the specified `key`.
Expand Down
5 changes: 1 addition & 4 deletions sdk/rust/src/sqlite.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use super::wit::v2::sqlite;

/// Represents a store in which key value tuples may be placed
// TODO: use `#[doc(inline)]` as soon as wit-bindgen#688 is merged
pub use sqlite::Connection;
#[doc(inline)]
pub use sqlite::{Error, QueryResult, RowResult, Value};
pub use sqlite::{Connection, Error, QueryResult, RowResult, Value};

impl sqlite::Connection {
/// Open a connection to the default database
Expand Down
8 changes: 4 additions & 4 deletions tests/http/headers-env-routes-test/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions tests/http/simple-spin-rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 23dee4b

Please sign in to comment.