• v5.1.0 43fa1c68f3

    v5.1.0
    All checks were successful
    Test / build (map[name:nightly]) (push) Successful in 4m55s
    Test / build (map[name:stable]) (push) Successful in 5m35s
    Release Please / Release-plz (push) Successful in 1m11s
    Stable

    kemitix released this 2025-01-18 17:47:17 +00:00 | 0 commits to main since this release

    Added

    • replace openssl with rustls

    Other

    • (deps) update git.kemitix.net/kemitix/rust docker tag to v4
    • use check-for-ignored
    • (deps) update git.kemitix.net/kemitix/rust docker tag to v3.1.0
    • check for ignored files being included in repo
    • upgrade kemitix/rust v3
    • (deps) update https://git.kemitix.net/kemitix/rust action to v2.6.0
    • (deps) update https://git.kemitix.net/kemitix/rust action to v2.5.1
    • (net) add explicit tests for assert_no_unused_plans
    Downloads
  • v5.0.0 2f646c4131

    v5.0.0
    All checks were successful
    Test / build (map[name:nightly]) (pull_request) Successful in 7m47s
    Test / build (map[name:stable]) (pull_request) Successful in 8m7s
    Test / build (map[name:nightly]) (push) Successful in 7m42s
    Test / build (map[name:stable]) (push) Successful in 8m43s
    Release Please / Release-plz (push) Successful in 6m17s
    Stable

    kemitix released this 2024-12-29 20:36:53 +00:00 | 10 commits to main since this release

    Added

    • (net) add tracing to matching each criteria for mock request

    Fixed

    • (net) [breaking] remove Drop assertions for any unused plans

    In previous versions any unused plans remaining in MockNet or Net when it was dropped would cause a panic. This was a pain to investigate, an unsightly way to cause a test to fail and resulted in panics happing when a clone of Net or MockNet was dropped.

    To perform the same check in a more sane manner tests must now use the assert_no_unused_plans method on Net or MockNet once their test case has completed.

    Example:

    net.assert_no_unused_plans();

    Other

    • (print) add details to readme and an example
    Downloads
  • v4.0.1 add2fc93af

    v4.0.1
    All checks were successful
    Test / build (map[name:nightly]) (pull_request) Successful in 6m10s
    Test / build (map[name:stable]) (pull_request) Successful in 8m7s
    Release Please / Release-plz (push) Successful in 4m56s
    Test / build (map[name:nightly]) (push) Successful in 8m45s
    Test / build (map[name:stable]) (push) Successful in 9m1s
    Stable

    kemitix released this 2024-12-25 20:52:12 +00:00 | 14 commits to main since this release

    Fixed

    • (net) prevent race to match mocked net requests
    Downloads
  • v4.0.0 d3eb51ab73

    v4.0.0
    All checks were successful
    Test / build (map[name:stable]) (pull_request) Successful in 5m54s
    Test / build (map[name:nightly]) (pull_request) Successful in 8m54s
    Release Please / Release-plz (push) Successful in 1m6s
    Test / build (map[name:nightly]) (push) Successful in 4m44s
    Test / build (map[name:stable]) (push) Successful in 6m8s
    Stable

    kemitix released this 2024-12-15 14:54:26 +00:00 | 16 commits to main since this release

    Added

    • (fs) [breaking] Reader now supports non-utf8 files
    Downloads
  • v3.2.0 c38a6c79c4

    v3.2.0
    All checks were successful
    Release Please / Release-plz (push) Successful in 1m9s
    Test / build (map[name:nightly]) (push) Successful in 4m18s
    Test / build (map[name:stable]) (push) Successful in 5m51s
    Stable

    kemitix released this 2024-12-12 17:19:23 +00:00 | 18 commits to main since this release

    Added

    • (net) trace log the body of a request
    • (net) don't use panic to signal test should fail
    • (print) add print module
    • (net) add tracing
    • (fs) add tracing
    • (net) add bearer_auth helper to MockNet
    • (net) add basic_auth helper to MockNet
    • (net) add user_agent helper to MockNet
    • (net) mock requests based on query parameters

    Fixed

    • (net) typo in test data
    • (example) don't use relative path - not allowed

    Other

    • (deps) update kemitix/rust action to v2.5.0
    • (net) elide lifetime
    • ignore any occasional use of rover
    • (push-next) add ability for manual workflow dispatch
    Downloads
  • v3.1.0 cfae6623de

    v3.1.0
    All checks were successful
    Rust / build (map[name:nightly]) (push) Successful in 4m25s
    Rust / build (map[name:stable]) (push) Successful in 4m50s
    Release Please / Release-plz (push) Successful in 2m48s
    Stable

    kemitix released this 2024-11-21 21:15:43 +00:00 | 34 commits to main since this release

    Added

    • (net) mock request builder adds .with and .with_{option,result}

    Fixed

    • impl Display for path, file and dir

    Other

    • (example) clean up get example
    Downloads
  • v3.0.0 a58796f2f0

    v3.0.0
    All checks were successful
    Rust / build (map[name:nightly]) (push) Successful in 4m14s
    Rust / build (map[name:stable]) (push) Successful in 4m19s
    Release Please / Release-plz (push) Successful in 1m56s
    Stable

    kemitix released this 2024-11-20 22:42:50 +00:00 | 38 commits to main since this release

    Breaking Changes in net

    The fluent API for net in v2 just wasn't good enough.

    Added

    • (net) [breaking] net api: net.{get,post,etc..}(url) alternative to net.send(request)
    • (fs) add TempFileSystem::as_real()
    • (net) [breaking] new api: .on().respond().{status,header{s},body}(_)?, replacing respond(response)
    • (net) [breaking] new api: .on().{get,post, etc}(url), replacing .on(method).get(url)
    • re-export http::HeaderMap
    • Add Debug, Clone, Default, PartialEq, Eq, Send, Sync to as many or our types as possible.

    Fixed

    • (net) [breaking] Remove MatchOn
    Downloads
  • v2.1.1 d664090648

    v2.1.1
    All checks were successful
    Rust / build (map[name:stable]) (pull_request) Successful in 4m30s
    Rust / build (map[name:nightly]) (pull_request) Successful in 6m54s
    Rust / build (map[name:stable]) (push) Successful in 3m15s
    Rust / build (map[name:nightly]) (push) Successful in 5m55s
    Release Please / Release-plz (push) Successful in 2m29s
    Stable

    kemitix released this 2024-11-16 07:36:59 +00:00 | 46 commits to main since this release

    Fixed

    • impl Clone for Net
    Downloads
  • v2.1.0 7e1b3de984

    v2.1.0
    All checks were successful
    Rust / build (map[name:nightly]) (push) Successful in 2m16s
    Rust / build (map[name:stable]) (push) Successful in 3m25s
    Release Please / Release-plz (push) Successful in 54s
    Stable

    kemitix released this 2024-11-15 16:57:47 +00:00 | 48 commits to main since this release

    Added

    • re-export Method, Url, Request, Response and RequestBuilder from http, url and reqwest crates

    Other

    • remove duplicated section
    Downloads
  • v2.0.0 e053679dcc

    v2.0.0
    All checks were successful
    Rust / build (map[name:stable]) (push) Successful in 10m48s
    Rust / build (map[name:nightly]) (push) Successful in 13m30s
    Release Please / Release-plz (push) Successful in 5m13s
    Stable

    kemitix released this 2024-11-14 20:13:21 +00:00 | 51 commits to main since this release

    Breaking Rewrite

    This release is a complete rewrite. The concept of creating a real or mock instance of a filesystem or network object and passing it to your program remains. What has changed is the API around those objects. The API changes bring a new fluent style. The biggest change, for the better, is in the network module.

    Read the documentation for the full details of the new API: https://docs.rs/kxio/latest/kxio/index.html

    Downloads