Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 51 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,55 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/),
and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

## [0.4.0] - 2026-11-20

### Added

- `eggfetch-core`: a URL-free native request builder. `Client::get_uri`,
`Client::post_uri`, and `Client::request_uri` accept an already-parsed
`http::Uri` and return a `NativeRequestBuilder`, which is available in
every profile. A consumer on the minimal native slice can now build and
dispatch a request without the `url`/`idna`/ICU closure that
`high-level-url` pulls in. The builder dispatches through the same
frame-preserving transport as `Client::execute_http_body`: exactly one
attempt, no redirects, no logical retries, no cookies, no authentication,
no response decompression, and no decoded-body limits. The caller owns
IDNA/punycode conversion before constructing the URI. The native builder
is a separate type from the high-level `RequestBuilder` so the existing
high-level signatures are unchanged.
- `eggfetch-core`: `RequestBuilder::without_retry()` and
`RequestBuilder::redirect_policy()` are available in every profile.
Both are disable switches, so a caller must be able to express "this
request is not retried" and "this request does not follow redirects" even
where the corresponding capability is compiled out.
`RedirectPolicy`/`RedirectDowngradePolicy` are therefore available in
every profile too. With `logical-retry`/`redirects` enabled the values
are honored exactly as before; without them the capability is already
absent, so the setter is a semantic no-op. The backing state is an
always-present `Request::retry_disabled` flag that the gated retry loop
consults, and a request-level `Option<RedirectPolicy>`.
- `eggfetch-core`: `RequestBody` implements `http_body::Body`, so a
request body can be handed to any `http-body`-based API.

### Changed

- `eggfetch-core`: the `proxy` feature now selects `native-http1`
instead of the `http1` alias. A consumer that wants eggfetch's proxy
support no longer also compiles in the `logical-retry`, `redirects`, and
`basic-auth` policy bundle, which the proxy transport does not use.
Proxy auth keeps its own `base64` edge, so `Proxy-Authorization`
encoding is unchanged. The default feature set and the `http1`/`http2`
aliases are unchanged, so the CLI and Python adapters are unaffected.
- `eggfetch-ffi`: the `eggfetch-core` dependency now names `redirects` and
`basic-auth` explicitly. The C ABI exports
`eggfetch_client_builder_follow_redirects`, `..._max_redirects` and
`..._basic_auth` unconditionally, and those capabilities used to arrive only
through the old `proxy` implication. Default builds are unchanged; this
repairs non-default configurations such as
`--no-default-features --features proxy`, which otherwise stopped compiling.

## [0.3.0] - 2026-10-30

### Added
Expand Down Expand Up @@ -326,7 +375,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
- Multipart boundary validation
- Proxy authentication boundary enforcement

[Unreleased]: https://github.com/eggstack/eggfetch/compare/v0.3.0...HEAD
[Unreleased]: https://github.com/eggstack/eggfetch/compare/v0.4.0...HEAD
[0.4.0]: https://github.com/eggstack/eggfetch/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/eggstack/eggfetch/compare/v0.2.2...v0.3.0
[0.2.2]: https://github.com/eggstack/eggfetch/releases/tag/v0.2.2
[0.2.1]: https://github.com/eggstack/eggfetch/releases/tag/v0.2.1
Expand Down
12 changes: 6 additions & 6 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ eggfetch is a Rust-native async HTTP client engine (tokio + hyper) with Python b
- **Proxy**: HTTP forwarding, HTTPS CONNECT, proxy auth, `NO_PROXY`, SOCKS5 ([proxy](docs/concepts/proxy.md))
- **Cookies, auth, multipart, compression**: RFC 6265 jar, Basic/Bearer, streaming uploads, gzip/brotli/zstd/deflate
- **Retries and redirects**: backoff with `Retry-After`, replayable-body redirect handling
- **URL-free native builder**: `Client::get_uri`/`post_uri`/`request_uri` build from an `http::Uri` in every feature profile, for embeddings that omit `url`/IDNA/ICU
- **Python**: requests/HTTPX-compatible sync and async APIs plus versioned `eggfetch.compat.httpx` (0.28.1) and `eggfetch.compat.httpx2` (2.12.0) facades ([compatibility](docs/reference/compatibility.md))
- **CLI** with streaming output, machine-readable formats, and shell completions ([guide](docs/cli/guide.md))

Expand Down
17 changes: 14 additions & 3 deletions compat/downstream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,21 @@ EGGFETCH_COMPAT_REQUIRED=1 pytest crates/eggfetch-python/tests/compat/test_downs

### Install all downstream packages for manual testing
```bash
pip install httpx==0.28.1 respx==0.21.1 pytest-httpx==0.30.0 starlette==0.37.2
pip install anthropic==0.39.0 groq==0.13.0 httpx-sse==0.4.0 httpcore==1.0.5
pip install anyio==4.8.0 httpx-auth==0.22.0 httpx-ws==0.7.0 pydantic==2.10.0
pip install -r compat/httpx/0.28.1/requirements.txt
pip install -r compat/httpx2/2.12.0/requirements.txt
```
Those two files are the canonical pins the compatibility profiles use; install
from them rather than from a hand-written list so the versions cannot drift
away from what the gates actually run.

### Prerequisites for the artifact producer
`python scripts/build_downstream_artifact.py` builds both wheels, so the
interpreter it runs under needs `maturin` (for the eggfetch wheel) and
`build` + `setuptools` (for the controlled HTTPX replacement, per
`compat/httpx-controlled-replacement/build.sh`). In a fresh virtual
environment the second pair is not installed by
`scripts/ci-requirements.txt`, and the producer fails with
`No module named build`.

## Isolation Requirements

Expand Down
2 changes: 1 addition & 1 deletion compat/rust-public-api/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Rust public API oracle

These snapshots freeze the supported `eggfetch-core` Rust surface at planning
baseline `03ecba973010e2858bf16a2b5f84d51ce70adae4`. They are verification
baseline `05f14f442dba697d7c140ead552e87f126ceac6b`. They are verification
artifacts, not an additional supported API or a source of feature semantics.

The generator is `cargo-public-api 0.52.0`, run with the pinned repository
Expand Down
Loading
Loading