NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1898 most downloaded on crates.io
HTTP mocking library for Rust
Latest stable
0.9.0
Last release 1 months ago
20 Oct 2026
Release timing varies
gaps range from 1 weeks to 13 months
Most releases are documented
notes for 29 of 38 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
44 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
The methods deprecated since 0.8.0 (Mock::hits, hits_async, assert_hits, assert_hits_async and When::matches) are still available and will be removed…
The crate was upgraded to the Rust 2024 edition. The minimum supported Rust version remains 1.88.
server::matchers is now crate-private
(#312). Its matcher, comparator and reader
types are implementation details rather than a supported extension API; there is no
replacement public path. Custom predicates remain possible with When::is_true.is_blank, contains_str, contains_slice and contains_vec
were removed (#246). Use
request.body_string().contains(".."), which also works inside respond_with, or
request.body_ref().windows(n).any(|w| w == b"..") with a non-empty needle, and
When::body_includes when matching.HttpMockRequest::query_params_map() was removed
(#246). Collect query_params() instead:
let params: HashMap<String, String> = request.query_params().into_iter().collect();
keeps the last value for duplicate keys, as the removed method did. query_params() has
returned Vec<(String, String)> since 0.8.2.MockExt trait was removed and Mock's public id field is now private
(#285). Remove MockExt imports and
replace direct mock.id field access with mock.id(). Mock::new(id, &server) is
unchanged.http2 cargo feature is enabled
(#297). Previously this worked without the
feature. It fails at runtime, not at compile time: the client sees the connection closed
after the preface and the server logs "invalid HTTP version parsed (found HTTP2 preface)".
Enable http2 to keep serving such clients; standalone and the Docker image already
include it. HTTPS via ALPN is unaffected, as h2 was already only offered with the feature
enabled. The crate also no longer enables tokio/signal or hyper/http2 for other crates
in the build, so a crate that relied on that has to enable them itself.server::state::MockServerState and server::state::HttpMockStateManager are now
crate-private (#289,
#326). Neither could be used from outside
the crate beyond constructing it; code using the MockServer API is unaffected.experimental Cargo feature was removed
(#316). Remove it from your dependency's
feature list; it did not enable any functionality.curl and wget are no
longer installed, so healthchecks that call them need another probe: an httpGet probe
against /__httpmock__/ping, or from inside the container
bash -c 'exec 3<>/dev/tcp/127.0.0.1/5050'. The CA files are no longer in the image either;
use certs/ca.pem from the repository or server::DEFAULT_CA_CERTIFICATE. The executable
is now at /usr/local/bin/httpmock, with a compatibility symlink at
/usr/local/cargo/bin/httpmock so existing absolute paths continue to work.tls-detect cargo feature was removed
(#333). It only enabled an internal
dependency that https already pulled in; remove it from your feature list.clap, colored, headers,
hyper-rustls, if-addrs, rcgen, rustls, rustls-pki-types, serde_yaml,
tokio-rustls and tracing-subscriber are enabled through the documented features only.
Replace any of these names in your feature list with the feature that needs them, such as
https or standalone.RecordingRuleBuilder::config is now private
(#322). Its type could only be used through
type inference; configure recordings through the builder's methods.Most code needs no changes. Remove MockExt imports and use mock.id() to read a mock's
ID. Replace body().is_blank() with body_string().trim().is_empty() and
body().contains_str("x") with body_string().contains("x"). Replace query_params_map()
with query_params().into_iter().collect::<HashMap<_, _>>().
Direct imports from server::matchers must be removed; use the When API to configure
matchers instead.
Tests whose clients speak cleartext HTTP/2 to the mock server additionally need the http2
feature.
The methods deprecated since 0.8.0 (Mock::hits, hits_async, assert_hits,
assert_hits_async and When::matches) are still available and will be removed in 1.0.
HttpMockResponse::to_http_response()
for converting to an HTTP response with a byte body. The method borrows the response and
returns any conversion error.Then::up_to_n_times, Mock::up_to_n_times or Mock::up_to_n_times_async,
after which they stop matching requests. Static mock YAML files support the same limit as
up_to_n_times under then. MockServer::reset(), which start() and connect() call,
now also resets the call counters of static YAML mocks. (resolves
#96)
(thanks @wfchandler)Send when their
inputs do, allowing registration inside tokio::spawn
(#325).When, Then and the forwarding, proxy and recording rule builders are now Send and
Sync (#322).async-trait and tls-detect are no
longer dependencies. The server now tells TLS and plain HTTP connections apart by the first
byte the client sends.json_body and body_from_file (resolves issues
#118 and
#185)server::DEFAULT_CA_CERTIFICATE and server::DEFAULT_CA_PRIVATE_KEY
(https feature) (thanks @ErikMcClure)HttpMockServerBuilder::build() returns an error instead of panicking when the directory
of static mock files cannot be listed, and the YAML and file error messages were reworded
(904fc03)http2 feature now also enables HTTP/2 in the HTTPS client, so remote, https and
http2 compile together without remote-httpshttps feature builds correctly
again (hyper-rustls/ring is enabled) (thanks @danieleades)DELETE /recordings/:id now deletes
recordings instead of proxy rules (thanks @danieleades)history_limit is
honored instead of a hardcoded cap (thanks @danieleades)*_prefix and *_suffix matchers no longer panic with a char-boundary error when
building a mismatch report for a request value containing multi-byte UTF-8 charactersRecording::save and save_to no longer
overwrite a recording saved under the same scenario name in the same second; the second file
gets a counter suffix
(<scenario>_<timestamp>_1.yaml)[lints.rust] in Cargo.toml denies warnings, replacing the old #![allow(warnings)].
Cargo caps lints for registry and git dependencies, but a path dependency on httpmock builds
with them on; use --cap-lints warn there if a newer compiler adds a warningMockServerState removal is listed under breaking changes) (thanks @danieleades)Your coding agent can read these notes before it upgrades. Set up the MCP server →
~1800 changes, numerous bugfixes
Language
float type has been removed. Use f32 or f64 instead.#[feature(foo)] attribute.#[feature(managed_boxes)]) in preparation for future removal. Use the
standard library's Gc or Rc types instead.@mut has been removed. Use std::cell::{Cell, RefCell} instead.continue instead of
loop.r"foo" syntax or with matched
hash delimiters, as in r###"foo"###.~fn is now written proc (args) -> retval { ... } and may only be
called once.&fn type is now written |args| -> ret to match the literal form.@fns have been removed.do only works with procs in order to make it obvious what the cost
of do is.#[link(...)] attribute has been replaced with
#[crate_id = "name#vers"].impls must be terminated with empty braces and may not be
terminated with a semicolon.self lifetime
no longer has any special meaning.fmt! string formatting macro has been removed.printf! and printfln! (old-style formatting) removed in favor of
print! and println!.mut works in patterns now, as in let (mut x, y) = (1, 2);.extern mod foo (name = "bar") syntax has been removed. Use
extern mod foo = "bar" instead.alignof, offsetof, sizeof.asm! macro is feature-gated (#[feature(asm)]).as.repr attribute can be used to override
the discriminant size, as in #[repr(int)] for integer-sized, and
#[repr(C)] to match C enums.0o7777.concat! syntax extension performs compile-time string concatenation.#[fixed_stack_segment] and #[rust_stack] attributes have been
removed as Rust no longer uses segmented stacks.#[feature(non_ascii_idents)])...,
not *; ignoring remaining fields of a struct is also done with ..,
not _; ignoring a slice of a vector is done with .., not .._.rustc supports the "win64" calling convention via extern "win64".rustc supports the "system" calling convention, which defaults to the
preferred convention for the target platform, "stdcall" on 32-bit Windows,
"C" elsewhere.type_overflow lint (default: warn) checks literals for overflow.unsafe_block lint (default: allow) checks for usage of unsafe.attribute_usage lint (default: warn) warns about unknown
attributes.unknown_features lint (default: warn) warns about unknown
feature gates.dead_code lint (default: warn) checks for dead code.#[link_args] is behind the link_args feature gate.#[link(name = "foo")]#[link(name = "foo", kind = "static")]).#[link(name = "foo", kind = "framework")]).#[thread_local] attribute creates thread-local (not task-local)
variables. Currently behind the thread_local feature gate.return keyword may be used in closures.Pod kind.cfg attribute can now be used on struct fields and enum variants.Libraries
option and result API's have been overhauled to make them
simpler, more consistent, and more composable.std::io module has been replaced with one that is
more comprehensive and that properly interfaces with the underlying
scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
implemented.io::util contains a number of useful implementations of
Reader and Writer, including NullReader, NullWriter,
ZeroReader, TeeReader.extra::rc moved into std.Gc type in the gc module will replace @ (it is currently
just a wrapper around it).Either type has been removed.fmt::Default can be implemented for any type to provide default
formatting to the format! macro, as in format!("{}", myfoo).rand API continues to be tweaked.rust_begin_unwind function, useful for inserting breakpoints
on failure in gdb, is now named rust_fail.each_key and each_value methods on HashMap have been
replaced by the keys and values iterators.sys module to the mem module.path module was written and API changed.str::from_utf8 has been changed to cast instead of allocate.starts_with and ends_with methods added to vectors via the
ImmutableEqVector trait, which is in the prelude.get_opt method, which returns None
if the index is out of bounds.Any type can be used for dynamic typing.~Any can be passed to the fail! macro and retrieved via
task::try._iter
suffix now.cell::Cell and cell::RefCell can be used to introduce mutability
roots (mutable fields, etc.). Use instead of e.g. @mut.util::ignore renamed to prelude::drop.sort and sort_by methods via the MutableVector
trait.vec::raw has seen a lot of cleanup and API changes.comm module has been rewritten to be much faster, have a
simpler, more consistent API, and to work for both native and green
threading.flatpipes module had bitrotted and was removed.c_vec has been modernized.sort module has been removed. Use the sort method on
mutable slices.Tooling
rust and rusti commands have been removed, due to lack of
maintenance.rustdoc was completely rewritten.rustdoc can test code examples in documentation.rustpkg can test packages with the argument, 'test'.rustpkg supports arbitrary dependencies, including C libraries.rustc's support for generating debug info is improved again.rustc has better error reporting for unbalanced delimiters.rustc's JIT support was removed due to bitrot.rustc adds a --dep-info flag for communicating dependencies to
build tools.Minimum supported Rust version has been raised to 1.88.
Minimum supported Rust version has been raised to 1.88.
The following PRs have been merged:
All changes between since the last release: https://github.com/httpmock/httpmock/compare/v0.8.2...v0.8.3
This release includes bug fixes, documentation enhancements and new features, such as dynamic responders.
This release includes bug fixes, documentation enhancements and new features, such as dynamic responders.
The following pull requests have been merged:
This release includes bug fixes and documentation enhancements.
This release includes bug fixes and documentation enhancements.
The following pull requests have been merged:
This release includes refactoring, dependency updates, and internal cleanups. No breaking changes expected.
This release includes refactoring, dependency updates, and internal cleanups. No breaking changes expected.
The minimum required Rust version has been increased to 1.82.
The following pull requests have been merged:
This release includes refactoring, dependency updates, and internal cleanups.
The minimum required Rust version has been increased to 1.82.
The following pull requests have been merged:
~2200 changes, numerous bugfixes
Language
for loop syntax has changed to work with the Iterator trait.copy is no longer a keyword. It has been replaced by the Clone trait.debug! macro if it is passed
--cfg ndebugmod foo;, rustc will now look
for foo.rs, then foo/mod.rs, and will generate an error when both are
present.std::c_str module
provides new mechanisms for converting to C strings.extern "C" fn instead of `*u8'.#[fixed_stack_segment] attribute.externfn! macro can be used to declare both a foreign function and
a #[fixed_stack_segment] wrapper at once.pub and priv modifiers on extern blocks are no longer parsed.unsafe is no longer allowed on extern fns - they are all unsafe.priv is disallowed everywhere except for struct fields and enum variants.&T (besides &'static T) is no longer allowed in @T.ref bindings in irrefutable patterns work correctly now.char is now prevented from containing invalid code points.bool is no longer allowed.\0 is now accepted as an escape in chars and strings.yield is a reserved keyword.typeof is a reserved keyword.extern mod foo = "url";.enum E { V = 0u }static foo: [u8, .. 100]: [0, .. 100];.static foo: Foo = Foo { a: 5, .. bar };.cfg! can be used to conditionally execute code based on the crate
configuration, similarly to #[cfg(...)].unnecessary_qualification lint detects unneeded module
prefixes (default: allow).std::unstable::simd.format! implements a completely new, extensible, and higher-performance
string formatting system. It will replace fmt!.print! and println! write formatted strings (using the format!
extension) to stdout.write! and writeln! write formatted strings (using the format!
extension) to the new Writers in std::rt::io.#[link_section = "..."].proto! syntax extension for defining bounded message protocols
was removed.macro_rules! is hygienic for let declarations.#[export_name] attribute specifies the name of a symbol.unreachable! can be used to indicate unreachable code, and fails
if executed.Libraries
rt::io, based on the new
runtime.range function was added to the prelude, replacing
uint::range and friends.range_rev no longer exists. Since range is an iterator it can be
reversed with range(lo, hi).invert().chain method on option renamed to and_then; unwrap_or_default
renamed to unwrap_or.iterator module was renamed to iter.checked_add, checked_sub, and
checked_mul operations for detecting overflow.str, vec, option, result` were renamed for
consistency.to_foo for copying, into_foo for moving, as_foo for temporary
and cheap casts.CString type in c_str provides new ways to convert to and
from C strings.DoubleEndedIterator can yield elements in two directions.mut_split method on vectors partitions an &mut [T] into
two splices.str::from_bytes renamed to str::from_utf8.pop_opt and shift_opt methods added to vectors.swap_unwrap method of Option renamed to take_unwrap.SharedPort to comm.Eq has a default method for ne; only eq is required
in implementations.Ord has default methods for le, gt and ge; only lt
is required in implementations.is_utf8 performance is improved, impacting many string functions.os::MemoryMap provides cross-platform mmap.ptr::offset is now unsafe, but also more optimized. Offsets that
are not 'in-bounds' are considered undefined.vec removed in favor of methods.FromIterator so can be created by the
collect method.unstable::atomics.comm::PortSet removed.Set and Map traits have been moved into
the MutableSet and MutableMap traits. Container::is_empty,
Map::contains_key, MutableMap::insert, and MutableMap::remove have
default implementations.from_str functions were removed in favor of a generic
from_str which is available in the prelude.util::unreachable removed in favor of the unreachable! macro.dlist, the doubly-linked list was modernized.hex module with ToHex and FromHex traits.glob module, replacing std::os::glob.rope was removed.deque was renamed to ringbuf. RingBuf implements Deque.net, and timer were removed. The experimental replacements
are std::rt::io::net and std::rt::io::timer.SmallIntMap.Bitv and BitvSet.SmallIntSet removed. Use BitvSet.semver updated to SemVer 2.0.0.term handles more terminals correctly.dbg module removed.par module removed.future was cleaned up, with some method renames.getopts were converted to methods.Other
-Z debug-info) is greatly improved.--target-cpu to compile to a specific CPU architecture,
similarly to gcc's --march flag.--test now support the -h and --help flags.rustdoc command.A new MockServer::reset method was added that resets a mock server. Thanks for providing the pull request for this feature, @dax.
5000 to 5050 due to conflicts with system services on macOS.json_body_includes.form_urlencoded_tuple.form_urlencoded_key_exists.Mock::assert).When::matches has been renamed to When::is_true.5000 to 5050 due to conflicts with system services on macOS.json_body_includes.form_urlencoded_tuple.form_urlencoded_tuple_exists.Mock::assert).When::matches has been renamed to When::is_true.For connecting to remote httpmock servers during tests using any of the connect methods like MockServer::connect, MockServer::connect_async, MockServe
BREAKING CHANGES:
httpmock servers during tests using any of the connect methods like
MockServer::connect,
MockServer::connect_async,
MockServer::connect_from_env, or
MockServer::connect_from_env_async,
you must now activate the remote feature. This feature is not enabled by default.Improvements:
remote feature is not enabled.remote feature is not enabled, httpmock no longer has a dependency on a real HTTP client.
As a result, certain TLS issues previously reported by users
should no longer arise.This release also updates all dependencies to the most recent version.
The minimum Rust version has been bumped to 1.70.
~2000 changes, numerous bugfixes
Language
impls no longer accept a visibility qualifier. Put them on methods
instead.self parameter no longer implicitly means &'self self,
and can be explicitly marked with a lifetime.+=, etc.) have been temporarily
removed due to bugs.for loop protocol now requires for-iterators to return bool
so they compose better.Durable trait is replaced with the 'static bounds.#[packed] attribute have byte alignment and
no padding between fields.Copy must now be copied explicitly with
the copy keyword.Option<~T> is now represented as a nullable pointer.@mut does dynamic borrow checks correctly.main function is only detected at the topmost level of the crate.
The #[main] attribute is still valid anywhere.#[no_send] attribute makes a type that would otherwise be
Send, not.#[no_freeze] attribute makes a type that would otherwise be
Freeze, not.RUST_MAX_STACK environment variable (default: 1GB).vecs_implicitly_copyable lint mode has been removed. Vectors
are never implicitly copyable.#[static_assert] makes compile-time assertions about static bools.use mod statement no longer exists.Syntax extensions
fail! and assert! accept ~str, &'static str or fmt!-style
argument list.Encodable, Decodable, Ord, TotalOrd, TotalEq, DeepClone,
Rand, Zero and ToStr can all be automatically derived with
#[deriving(...)].bytes! macro returns a vector of bytes for string, u8, char,
and unsuffixed integer literals.Libraries
core crate was renamed to std.std crate was renamed to extra.iterator module for external iterator objects.Iterator.any, all. removed.finalize method of Drop renamed to drop.drop method now takes &mut self instead of &self.print, println, FromStr, ApproxEq, Equiv,
Iterator, IteratorUtil, many numeric traits, many tuple traits.Fractional, Real, RealExt, Integer, Ratio,
Algebraic, Trigonometric, Exponential, Primitive.(0, 1, 2).n2() or (0, 1, 2).n2_ref().Clone.path type renamed to Path.mut module and Mut type removed.vec, str. In the future methods will also work as functions.reinterpret_cast removed. Use transmute.std::ascii.Rand is implemented for ~/@.run module for spawning processes overhauled.unstable::atomic.Zero.LinearMap and LinearSet renamed to HashMap and HashSet.ptr to borrow.os::mkdir_recursive.os::glob function performs filesystems globs.FuzzyEq renamed to ApproxEq.Map now defines pop and swap methods.Cell constructors converted to static methods.rc module adds the reference counted pointers, Rc and RcMut.flate module moved from std to extra.fileinput module for iterating over a series of files.Complex number type and complex module.Rational number type and rational module.BigInt, BigUint implement numeric and comparison traits.term uses terminfo now, is more correct.arc functions converted to methods.Tooling
unused_variables lint mode for unused variables (default: warn).unused_unsafe lint mode for detecting unnecessary unsafe blocks
(default: warn).unused_mut lint mode for identifying unused mut qualifiers
(default: warn).dead_assignment lint mode for unread variables (default: warn).unnecessary_allocation lint mode detects some heap allocations that are
immediately borrowed so could be written without allocating (default: warn).missing_doc lint mode (default: allow).unreachable_code lint mode (default: warn).rusti command has been rewritten and a number of bugs addressed.--link-args flag to pass arguments to the linker.-Z print-link-args flag for debugging linkage.-g will make the binary record information about
dynamic borrowcheck failures for debugging.For connecting to remote httpmock servers during tests using any of the connect methods like MockServer::connect, MockServer::connect_async, MockServe
BREAKING CHANGES:
httpmock servers during tests using any of the connect methods like
MockServer::connect,
MockServer::connect_async,
MockServer::connect_from_env, or
MockServer::connect_from_env_async,
you must now activate the remote feature. This feature is not enabled by default.Improvements:
remote feature is not enabled.remote feature is not enabled, httpmock no longer has a dependency on a real HTTP client.
As a result, certain TLS issues previously reported by users
should no longer arise.This release also updates all dependencies to the most recent version.
The minimum Rust version has been bumped to 1.65 (and 1.70 for the remote and standalone features).
This is a maintenance release that updates all dependencies to the most recent version.
This is a maintenance release that updates all dependencies to the most recent version.
Extended some API methods to allow for more type flexibility (see https://github.com/alexliesenfeld/httpmock/issues/58). Thanks to @95th for providing
+ to represent space (see https://github.com/alexliesenfeld/httpmock/issues/56). Thanks to @95th for providing the PR!cookie to shorten compile time (see https://github.com/alexliesenfeld/httpmock/pull/63). Thanks to mythmon for providing this PR!Fixes a race condition that could occur when deleting mocks from the mock server (see https://github.com/alexliesenfeld/httpmock/issues/53).
difference to similar, see https://github.com/alexliesenfeld/httpmock/pull/55).Fixed minimum Rust version in README (raised from 1.47 to 1.54, see release 0.6.3 for more information).
Fixed minimum Rust version in README (raised from 1.47 to 1.54, see release 0.6.3 for more information).
This is a maintenance release that updates all dependencies to the most recent version.
A bug was fixed that has unexported the When and Then structures. Both types are now exported again. Please refer to https://github.com/alexliesenfeld
This is a maintenance release that updates all dependencies to the most recent version.
This is a maintenance release that updates all dependencies to the most recent version.
Old Mock structure based API was deprecated starting from version 0.5.0 and was removed with this version. Please switch to the new API based on the W…
MockRef::times_called and MockRef::times_called_async were deprecated since version 0.5.0 and have now been removed.httpmock in tests.MockRef has been renamed to Mock.MockRefExt has been renamed to MockExt.exposed and disable_access_log parameters were changed, so that they now require a value in addition to the flag itself (this is due to a limitation of structopt/clap): Before: httpmock --expose, Now: httpmock --expose true.~2100 changes, numerous bugfixes
Syntax changes
Selfself parameter in trait and impl methods must now be explicitly
named (for example: fn f(&self) { }). Implicit self is deprecated.static keyword and instead
are distinguished by the lack of a self parameterDurable trait with the 'static lifetimesuper is a keyword, and may be prefixed to paths+ instead of whitespaceimpl Trait for Type
instead of impl Type: Trait&'l foo instead of &l/fooexport keyword has finally been removedmove keyword has been removed (see "Semantic changes")[mut T], has been
removed. Use &mut [T], etc.mut is no longer valid in ~mut T. Use inherited mutabilityfail is no longer a keyword. Use fail!()assert is no longer a keyword. Use assert!()log is no longer a keyword. use debug!, etc.(T,)mut. Use inherited mutability,
@mut T, core::mut or core::cellextern mod { ... } is no longer valid syntax for foreign
function modules. Use extern blocks: extern { ... }const renamed to static to correspond to lifetime name,
and make room for future static mut unsafe mutable globals.#[deriving_eq] with #[deriving(Eq)], etc.Clone implementations can be automatically generated with
#[deriving(Clone)]@foo as @Bar
instead of foo as Bar.[int, .. 3]
instead of [int * 3].[int, .. GL_BUFFER_SIZE - 2])Semantic changes
move keyworduse statements may no longer be "chained" - they cannot import
identifiers imported by previous use statementsuse statements are crate relative, importing from the "top"
of the crate by default. Paths may be prefixed with super::
or self:: to change the search behavior.Libraries
std::bigintcore::oldcomm modulecore::comm modulecore::numvec::slice finally returns a slicedebug! and friends don't require a format string, e.g. debug!(Foo)core::containercore::dvec removed, ~[T] is a drop-in replacementcore::send_map renamed to core::hashmapstd::map removed; replaced with core::hashmapstd::treemap reimplemented as an owned balanced treestd::deque and std::smallintmap reimplemented as owned containerscore::trie added as a fast ordered map for integer keyscore::hashmap, core::trie and std::treemapOrd split into Ord and TotalOrd. Ord is still used to
overload the comparison operators, whereas TotalOrd is used
by certain container typesOther
rustc --test now supports benchmarks with the #[bench] attributeA bug has been fixed that prevented to use the mock server for requests containing a multipart/form-data request body with binary data.
A bug has been fixed that prevented to use the mock server for requests containing a multipart/form-data
request body with binary data.
Added static mock support based on YAML files for standalone mode.
A bug has been fixed that caused false positive warnings in the log output.
MockRef::assert and MockRef::assert_hits) now contain more details.Nothing published for this version
Nothing published for this version
A bug has been fixed that prevented to use a request body in DELETE requests.
A bug has been fixed that prevented to use a request body in DELETE requests.
A new extension trait MockRefExt was added that extends the MockRef structure with additional but usually not required functionality.
A new extension trait MockRefExt was added that extends the MockRef structure with additional but usually
not required functionality.
Nothing published for this version
This is a maintenance release that updates all dependencies to the most recent version.
Updated dependencies to newest version.
Mock::return_body_from_file and Then::body_from_file now accept absolute and relative file paths.Updated dependency version of futures-util to fix compile errors
❌ _Breaking Change_: Function Mock::expect_json_body was renamed to expect_json_body_obj.
Mock::expect_json_body was renamed to expect_json_body_obj.Mock::return_json_body was renamed to return_json_body_obj.MockRef::assertMockRef::assert_hitsMockRef::assert_asyncMockRef::assert_hits_asyncMockRef::times_called and MockRef::times_called_async are now deprecated. Consider using
MockRef::hits and MockRef::hits_async.Mock::return_body and Then::body now accept binary content.serde_json::Value:
Mock::expect_json_bodyMock::return_json_bodyWhen::json_bodyThen::json_bodydebug to trace to make debugging easier.~900 changes, numerous bugfixes
Syntax changes
<- move operator#fmt extension syntax to fmt![T]/Nquote_tokens!, quote_expr!, etc.a.b() is always parsed as a method call, never as a field projectionEq and IterBytes implementations can be automatically generated
with #[deriving_eq] and #[deriving_iter_bytes] respectively.rc filesSemantic changes
& and ~ pointers may point to objectsstruct Foo(Bar, Baz). Will replace newtype enums.move explicitly&T may now be coerced to *Tlet statements as well as function callsuse statements now take crate-relative pathsImproved support for language features
self, &self
@self, and ~self all generally work as expectedLibraries
core::conditionstd::sortstd::priority_queuegetopts definitionsstdcore::comm renamed to oldcomm. Still deprecatedrustdoc and cargo are libraries nowMisc
rustiNothing published for this version
Added a new function base_url to the MockServer structure.
base_url to the MockServer structure.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
pub and priv replace deprecated export lists
~2000 changes, numerous bugfixes
Syntax
ret became return and alt became matchimport is now use; use is now extern mod`extern mod { ... } is now extern { ... }use mod is the recommended way to import modulespub and priv replace deprecated export listsmatch pattern arms now uses fat arrow (=>)main no longer accepts an args vector; use os::args insteadSemantics
Libraries
std::net::url for representing URLscore::send_mapConcurrency
core::pipesstd::arc, an atomically reference counted, immutable, shared memory
typestd::sync, various exotic synchronization tools based on arcs and pipesOther
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
~1900 changes, numerous bugfixes
~1900 changes, numerous bugfixes
New coding conveniences
Semantic cleanup
Experimental new language features
Type reflection
Removal of various obsolete features
Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind', 'crust', 'native' (now 'extern'), 'cont' (now 'again')
Constructs: do-while loops ('do' repurposed), fn binding, resources (replaced by destructors)
Compiler reorganization
New library code
Tool improvements
>1500 changes, numerous bugfixes
1500 changes, numerous bugfixes
New docs and doc tooling
New port: FreeBSD x86_64
Compilation model enhancements
Scheduling, stack and threading fixes
Experimental new language features
Various language extensions
New library code
Most language features work, including:
Most language features work, including: * Unique pointers, unique closures, move semantics * Interface-constrained generics * Static interface dispatch * Stack growth * Multithread task scheduling * Typestate predicates * Failure unwinding, destructors * Pattern matching and destructuring assignment * Lightweight block-lambda syntax * Preliminary macro-by-example
Compiler works with the following configurations:
Cross compilation / multi-target configuration supported.
Preliminary API-documentation and package-management tools included.
Known issues:
Documentation is incomplete.
Performance is below intended target.
Standard library APIs are subject to extensive change, reorganization.
Language-level versioning is not yet operational - future code will break unexpectedly.
One column per quarter.