Skip to content

Commit

Permalink
http encoding feature
Browse files Browse the repository at this point in the history
  • Loading branch information
StuartHarris committed May 18, 2024
1 parent 2341ff2 commit dd30c7b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 13 deletions.
21 changes: 21 additions & 0 deletions Cargo.lock

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

7 changes: 7 additions & 0 deletions crux_http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ license.workspace = true
keywords.workspace = true
rust-version.workspace = true

[features]
default = ["encoding"]
# requires web-sys for TextDecoder on wasm
encoding = ["encoding_rs", "web-sys"]

[dependencies]
anyhow.workspace = true
async-trait = "0.1.80"
Expand All @@ -22,6 +27,8 @@ serde = { workspace = true, features = ["derive"] }
serde_json = "1.0.117"
thiserror = "1.0.60"
url = "2.5.0"
encoding_rs = { version = "0.8.20", optional = true }
web-sys = { optional = true, version = "0.3.25", features = ["TextDecoder"] }

[dev-dependencies]
assert_fs = "1.0.13"
Expand Down
12 changes: 3 additions & 9 deletions examples/counter/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 examples/counter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ rust-version = "1.66"

[workspace.dependencies]
anyhow = "1.0.83"
crux_core = "0.7"
crux_http = "0.9"
# crux_core = { path = "../../crux_core" }
# crux_http = { path = "../../crux_http" }
# crux_core = "0.7"
# crux_http = "0.9"
crux_core = { path = "../../crux_core" }
crux_http = { path = "../../crux_http" }
serde = "1.0.201"

[workspace.metadata.bin]
Expand Down

0 comments on commit dd30c7b

Please sign in to comment.