An etcd client library for Rust.
Breaking changes:
Core
type previously.impl Trait
instead of boxing.New features:
Improvements:
Breaking changes:
Node
's createdIndex
and modifiedIndex
are now optional again, as they are not present on the root node.Breaking changes:
0.7.0 is a major update with many breaking changes. The biggest ones are listed below.
KeyValueInfo
(previously KeySpaceInfo
) is now an enum instead of a string.hyper::Client
for full customization of the HTTP layer. The custom constructor is also necessary for X.509 client certificate authentication.New features:
Improvements:
Breaking changes:
ClientOptions
now takes a native_tls::TlsConnector
instead of paths to PEM-formatted certificate/key files.Maintenance updates:
Maintenance updates:
Bug fixes:
Maintenance updates:
Bug fixes:
--no-default-features
.Improvements:
Breaking changes:
Client::default
is now implemented via std::default::Default
, which requires importing the trait.Client::new
now takes a slice of URLs instead of one URL.Client::self_stats
, Client::store_stats
, and Client::version
now return a vector of results—one for each etcd member the client was initialized with. Additionally, Client::version
has been renamed to Client::versions
to make this more clear.Etcd
variant of etcd::error::Error
has been renamed Api
and its contained type, EtcdError
, has been renamed ApiError
.etcd::error::Error
: InvalidUrl
and NoEndpoints
. See the API docs for their purposes.KeySpaceResult
's error type is now a vector of errors, to account for the client supporting multiple etcd members now.node
field of the KeySpaceInfo
struct is now wrapped in an Option
.client
, error
, and keys
modules are no longer public. All their user-facing public types are available from the crate root.CountStats
, FollowerStats
, LatencyStats
, and VersionInfo
structs are no longer wrapped in Option
s.New features:
Client
now accepts multiple URLs for etcd members. Except for API calls that specifically target a member, each API call will try each member in sequence, returning the first successful result. If all members are exhausted without a successful response, the client will return a vector of errors—one for each member it tried.Client::with_options
, takes the new ClientOptions
struct as an argument and provides support for three new features:
etcd::error::Error
and etcd::error::ApiError
now implement std::error::Error
.Improvements: