-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get structured logging API ready for stabilization #613
Changes from 24 commits
dbc0a3f
fdc1c6e
7f93aca
e3a5b98
9fae53d
05119e1
0096377
54c34f7
05d7bed
e711b62
67885e0
0374a25
1d258b6
6b483c6
d8dc6a8
f6b89c0
6d9e98a
44b8e99
a6c4095
52460f9
90a347b
ad91711
31bb4b0
73e9539
cf85c38
646e9ab
2b220bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ rust-version = "1.60.0" | |
edition = "2021" | ||
|
||
[package.metadata.docs.rs] | ||
features = ["std", "serde", "kv_unstable_std", "kv_unstable_sval", "kv_unstable_serde"] | ||
features = ["std", "serde", "kv_std", "kv_sval", "kv_serde"] | ||
|
||
[[test]] | ||
name = "filters" | ||
|
@@ -46,25 +46,31 @@ release_max_level_trace = [] | |
|
||
std = [] | ||
|
||
# requires the latest stable | ||
# this will have a tighter MSRV before stabilization | ||
kv_unstable = ["value-bag"] | ||
kv_unstable_sval = ["kv_unstable", "value-bag/sval", "sval", "sval_ref"] | ||
kv_unstable_std = ["std", "kv_unstable", "value-bag/error"] | ||
kv_unstable_serde = ["kv_unstable_std", "value-bag/serde", "serde"] | ||
kv = [] | ||
kv_sval = ["kv", "value-bag/sval", "sval", "sval_ref"] | ||
kv_std = ["std", "kv", "value-bag/error"] | ||
kv_serde = ["kv_std", "value-bag/serde", "serde"] | ||
|
||
# Deprecated: use `kv_*` instead | ||
# These `*_unstable` features will be removed in a future release | ||
kv_unstable = ["kv"] | ||
kv_unstable_sval = ["kv_sval"] | ||
kv_unstable_std = ["kv_std"] | ||
kv_unstable_serde = ["kv_serde"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To bad there is only There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually on second though... we're going to break a lot of (unstable) code already by removing the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is a reasonable thing to do 👍 Unfortunately you can’t mark them as deprecated but we can also re-export the renamed visitor traits under their old names when the old
KodrAus marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
[dependencies] | ||
serde = { version = "1.0", optional = true, default-features = false } | ||
sval = { version = "2.1", optional = true, default-features = false } | ||
sval_ref = { version = "2.1", optional = true, default-features = false } | ||
value-bag = { version = "1.4", optional = true, default-features = false } | ||
value-bag = { version = "1.7", optional = true, default-features = false, features = ["inline-i128"] } | ||
|
||
[dev-dependencies] | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
serde_test = "1.0" | ||
sval = { version = "2.1" } | ||
sval_derive = { version = "2.1" } | ||
value-bag = { version = "1.4", features = ["test"] } | ||
value-bag = { version = "1.7", features = ["test"] } | ||
|
||
# NOTE: log doesn't actually depent on this crate. However our dependencies, | ||
# serde and sval, dependent on version 1.0 of the crate, which has problem fixed | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#![cfg(feature = "kv_unstable")] | ||
#![cfg(feature = "kv")] | ||
#![feature(test)] | ||
|
||
use log::kv::Value; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could start using cargo-hack for this at some point (for another pr).