async-rs / async-log

Async tracing capabilities for the log crate
Apache License 2.0
98 stars 5 forks source link

update log to use kv_unstable_std instead of std #14

Closed KodrAus closed 3 years ago

KodrAus commented 3 years ago

Part of https://github.com/rust-lang/log/issues/437

The log crate has an unstable structured logging API under the kv_unstable feature. In previous releases, if you specified both the kv_unstable and std features of log like so:

log = { features = ["std", "kv_unstable"]}

you'd get support for standard library types in log's structured logging API.

Going forward, this functionality is now gated under kv_unstable_std:

log = { features = ["kv_unstable_std"]}

This change was made because we need to enable features in optional dependencies when both the std and kv_unstable features are enabled, which isn't currently supported by Cargo.

This PR updates this library to follow the new approach. It can be merged at any time and is currently non-blocking, but on 2020-01-18 the version of log requiring kv_unstable_std instead of kv_unstable and std will be published.

Thanks for trying out log's structured logging API and sorry for any disruption! :bow: