Skip to content

Commit 8b77dd8

Browse files
committed
Bump uuid dep to version 1
Fixes #183 Signed-off-by: Jim Crossley <[email protected]>
1 parent 6653e46 commit 8b77dd8

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ base64 = "^0.12"
3434
url = { version = "^2.1", features = ["serde"] }
3535
snafu = "^0.6"
3636
bitflags = "^1.2"
37-
37+
uuid = { version = "1", features = ["v4"] }
3838
# runtime optional deps
3939
actix-web = { version = "4", optional = true }
4040
actix-http = { version = "3", optional = true }
@@ -52,14 +52,9 @@ poem-lib = { version = "=1.2.34", optional = true, package = "poem" }
5252

5353
[target."cfg(not(target_arch = \"wasm32\"))".dependencies]
5454
hostname = "^0.3"
55-
uuid = { version = "^0.8", features = ["v4"] }
5655

5756
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
5857
web-sys = { version = "^0.3", features = ["Window", "Location"] }
59-
uuid = { version = "^0.8", features = ["v4", "wasm-bindgen"] }
60-
61-
[target.'cfg(all(target_arch = "wasm32", target_os="wasi"))'.dependencies]
62-
uuid = { version = "^0.8", features = ["v4"] }
6358

6459
[dev-dependencies]
6560
rstest = "0.6"

example-projects/reqwest-wasm-example/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
1111

1212
[dependencies]
1313
reqwest = "^0.11"
14-
uuid = "0.8"
14+
uuid = "1"
1515
cloudevents-sdk = { path = "../..", features = ["reqwest"] }
1616
url = { version = "^2.1" }
1717
web-sys = { version = "0.3.39", features = ["Window", "Location"] }

example-projects/reqwest-wasm-example/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub async fn run(
1111
data: String,
1212
) -> Result<(), JsValue> {
1313
let event = EventBuilderV10::new()
14-
.id(&Uuid::new_v4().to_hyphenated().to_string())
14+
.id(&Uuid::new_v4().hyphenated().to_string())
1515
.ty(ty)
1616
.source("http://localhost/")
1717
.data(datacontenttype, data)

0 commit comments

Comments
 (0)