Skip to content

Update trillium-testing requirement from 0.7.0 to 0.8.0#7

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/cargo/main/trillium-testing-0.8.0
Closed

Update trillium-testing requirement from 0.7.0 to 0.8.0#7
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/cargo/main/trillium-testing-0.8.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 4, 2026

Updates the requirements on trillium-testing to permit the latest version.

Release notes

Sourced from trillium-testing's releases.

trillium-testing-v0.8.0

Changed

  • Compatible with trillium 1.0
  • init(&mut handler) is now async and returns Arc<HttpContext>: init(&mut handler).await; capture the returned value if you need to pass it to TestConn::with_context()
  • ClientConfig struct removed; use the client_config() function or RuntimelessClientConfig directly
  • SpawnHandle<F> removed; background task handles are now DroppableFuture from trillium-server-common

Added

  • Introduce new testing approach described at TestHandler:
use trillium::{Conn, Status, conn_try};
use trillium_testing::TestServer;
async fn handler(mut conn: Conn) -> Conn {
let Ok(request_body) = conn.request_body_string().await else {
return conn.with_status(500).halt();
};
conn.with_body(format!(&quot;request body was: {}&quot;, request_body))
    .with_status(418)
    .with_response_header(&quot;request-id&quot;, &quot;special-request&quot;)

}
let app = TestServer::new(handler).await;
app.post("/")
.with_body("hello trillium!")
.await
.assert_status(Status::ImATeapot)
.assert_body("request body was: hello trillium!")
.assert_headers([
("request-id", "special-request"),
("content-length", "33")
]);

  • The assertion macros (assert_ok!, assert_status!, assert_not_handled!, etc.) and request builders are unchanged
  • Zero-dependency testing: when no runtime feature is enabled, RuntimelessRuntime, RuntimelessServer, and RuntimelessClientConfig provide fully in-memory test infrastructure without requiring tokio, smol, or async-std
  • with_runtime(|runtime| async { ... }) — test harness that injects a Runtime into the test closure, also usable as a test harness
  • TestConn::with_context(Arc<HttpContext>) — pass a server config (including shared state initialized by init) to a test connection

Added

  • (api) [breaking] make IoErrors respond with BadRequest
  • deprecate set_state for insert_state

Other

  • release
Commits
  • ca48261 chore(release): longer timeout
  • b2ae979 chore(release): fix changelogs
  • 70a4482 chore(http,release): exclude qifs
  • 4f980d7 chore: release 1.0.0!
  • 42b0112 fix(client): correctly set version to http/1.1 when falling back from a hinte...
  • b2101a1 fix(http): small http3 correctness fixes and significant test coverage
  • 369d99f docs(guide): fix link to Handler
  • 027d58e feat(client): add support for setting http version on the conn prior to exec
  • 6532be5 chore(release): re-add quinn and webtransport to list of release-plz managed ...
  • b8cf473 chore: fix new crate versions
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [trillium-testing](https://github.com/trillium-rs/trillium) to permit the latest version.
- [Release notes](https://github.com/trillium-rs/trillium/releases)
- [Commits](trillium-rs/trillium@trillium-testing-v0.7.0...trillium-testing-v0.8.0)

---
updated-dependencies:
- dependency-name: trillium-testing
  dependency-version: 0.8.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels May 4, 2026
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 11, 2026

Superseded by #10.

@dependabot dependabot Bot closed this May 11, 2026
@dependabot dependabot Bot deleted the dependabot/cargo/main/trillium-testing-0.8.0 branch May 11, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants