Skip to content

Commit

Permalink
Release 0.5.0 - Multipart, JSON, CORS Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Feb 16, 2024
1 parent 9e93205 commit 02be481
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ All notable changes to the `ehttp` crate will be documented in this file.
## Unreleased


## 0.5.0 - 2024-02-16
* Support multipart and JSON ([#47](https://github.com/emilk/ehttp/pull/47), [#49](https://github.com/emilk/ehttp/pull/49))
* Added CORS `Mode` property to `Request` on web ([#52](https://github.com/emilk/ehttp/pull/52))
* Don't add `web-sys` in native builds ([#48](https://github.com/emilk/ehttp/pull/48))


## 0.4.0 - 2024-01-17
* Allow duplicated headers in requests and responses ([#46](https://github.com/emilk/ehttp/pull/46))
* Support HEAD requests ([#45](https://github.com/emilk/ehttp/pull/45))
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

24 changes: 12 additions & 12 deletions ehttp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ehttp"
version = "0.4.1"
version = "0.5.0"
authors = ["Emil Ernerfeldt <[email protected]>"]
description = "Minimal HTTP client for both native and WASM"
edition = "2018"
Expand All @@ -16,22 +16,24 @@ include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
[package.metadata.docs.rs]
all-features = true

[lib]


[features]
default = []

## Support json fetch
json = ["dep:serde", "dep:serde_json"]

## Support multipart fetch
multipart = ["dep:getrandom", "dep:mime", "dep:mime_guess", "dep:rand"]

## Support `fetch_async` on native
native-async = ["async-channel"]

## Support streaming fetch
streaming = ["dep:wasm-streams", "dep:futures-util"]

## Support json fetch
json = ["dep:serde", "dep:serde_json"]

## Support multipart fetch
multipart = ["dep:getrandom", "dep:mime", "dep:mime_guess", "dep:rand" ]

[lib]

[dependencies]
document-features = "0.2"
Expand Down Expand Up @@ -64,9 +66,7 @@ getrandom = { version = "0.2.10", features = ["js"], optional = true }
futures-util = { version = "0.3", optional = true }
wasm-streams = { version = "0.4", optional = true }

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.52"
features = [
web-sys = { version = "0.3.52", features = [
"AbortSignal",
"console",
"Headers",
Expand All @@ -76,4 +76,4 @@ features = [
"RequestMode",
"Response",
"Window",
]
] }

0 comments on commit 02be481

Please sign in to comment.