Ashley Mannix
cc3d6edb5d
use kv_unstable_std instead of std
2021-01-08 14:18:01 +10:00
Ashley Mannix
b6491597ed
add a feature check stage
2021-01-08 14:13:48 +10:00
Ashley Mannix
0e005babc0
check std feature against kv_unstable
...
Check a few more permutations of `kv_unstable` features
2021-01-08 14:01:53 +10:00
Ashley Mannix
35dbf7d019
Merge pull request #432 from KodrAus/fix/test-path-during-package
...
Add path for filters and macros tests
2021-01-08 10:48:56 +10:00
Ashley Mannix
b1dd94a5f7
add path for filters and macros tests
2021-01-08 10:42:59 +10:00
Ashley Mannix
746e6e264f
Merge pull request #429 from KodrAus/cargo/0.4.12
...
Prepare for 0.4.12 release
2021-01-08 10:30:07 +10:00
DevJac
44310aad68
Clarify ordering of log levels in the docs
...
It was not clear whether `error` or `trace` was the maximum log level.
The docs said "`error!` represents the _highest_-priority log messages and `trace!` the _lowest_".
Yet, `set_max_level` regards `Trace` to be the maximum level.
I attempted to clarify this by avoiding the terms "high" and "low" in the docs except for where
they are applicable to the Rust order as defined in `Ord`.
2020-12-26 22:16:13 -07:00
KodrAus
4c66a1cefe
prepare for 0.4.12 release
2020-12-24 09:07:48 +10:00
Ashley Mannix
0e78c11b40
Run tests in our MSRV ( #427 )
2020-12-21 16:44:59 +10:00
Ashley Mannix
03b6989cfd
Merge pull request #422 from Aaron1011/fix/semi
...
Remove some trailing semicolons from macro definitions
2020-12-21 15:50:24 +10:00
Ashley Mannix
c4ed87c524
Merge pull request #426 from KodrAus/feat/kv-downcast
...
Key-value serializer adapters
2020-12-21 15:32:38 +10:00
Ashley Mannix
960ef82889
add adapters for serializing Sources
2020-12-21 15:00:34 +10:00
Ashley Mannix
e999195dc3
expose downcasting on Value
2020-12-21 11:39:00 +10:00
Ashley Mannix
078e68fa1e
Merge pull request #423 from KodrAus/feat/value-bag
...
Replace value internals with external crate
2020-11-29 19:08:13 +10:00
Ashley Mannix
71d6ed34b2
add serde support to Value
2020-11-29 18:49:54 +10:00
Ashley Mannix
c6be245606
simplify ToValue impl for str
2020-11-29 11:29:45 +10:00
Ashley Mannix
785f237dc4
add value support for std::error::Error
2020-11-29 11:22:45 +10:00
Ashley Mannix
84b78e27fa
replace value impl with value-bag
2020-11-29 10:57:13 +10:00
Aaron Hill
ed7a622a3f
Remove some trailing semicolons from macro definitions
...
This will allow these macros to continue to be used in expression
position if https://github.com/rust-lang/rust/issues/33953 is fixed.
2020-11-09 16:40:00 -05:00
Ashley Mannix
cb0b8c4f93
Merge pull request #417 from mbrubeck/deps
...
Update to cfg-if 1.0
2020-10-16 08:57:42 +10:00
Matt Brubeck
b6438b9b11
Update to cfg-if 1.0
2020-10-15 10:21:46 -07:00
Ashley Mannix
14d7303f19
Merge pull request #418 from mbrubeck/const
...
Remove use of unstable const_type_id feature (fixes CI failures on 1.47+)
2020-10-15 18:30:53 +10:00
Ashley Mannix
7a42b0562f
Merge pull request #419 from rust-lang/KodrAus-patch-1
...
remove dependency on reverted const type id
2020-10-15 17:58:33 +10:00
Ashley Mannix
dec0982618
remove dependency on reverted const type id
2020-10-15 17:51:20 +10:00
Matt Brubeck
14335ec889
Remove broken const_type_id feature
...
The `const_type_id` feature was planned to stabilize in Rust 1.47, but
this was reverted in: https://github.com/rust-lang/rust/pull/77083
This causes errors when building `log` with the `kv_unstable` feature on
Rust 1.47 or later. This patch removes the use of this no-longer-stable
feature in those Rust versions.
2020-10-14 10:05:51 -07:00
Steven Fackler
9a1902dfc6
Merge pull request #413 from alistair23/alistair/atomics
...
atomics: Add support for targets without atomics
2020-09-22 19:38:37 -04:00
Alistair Francis
3ae52e2729
lib.rs: Add rationale comments
...
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2020-09-22 12:07:01 -07:00
Alistair Francis
5334a7ecee
build.rs: Convert to functions
...
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2020-09-22 12:06:47 -07:00
Alistair Francis
18ab92ffe6
workflows/main.yml: Add an embedded riscv32imc test case
...
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2020-09-21 12:02:55 -07:00
Steven Fackler
7396e380ac
Merge pull request #414 from lionel1704/boxed-impl
...
Implement Log for Box<Log>
2020-09-21 12:14:50 -04:00
Lionel Faber
b5e9d0182a
Implement Log for boxed data types that already implement the Log trait
2020-09-21 20:05:02 +05:30
Alistair Francis
351ee33633
lib: Implement AtomicUsize for platforms without atomics
...
Some platforms don't provide a AtomicUsize. Instead of just failing to
build with this error:
291 | use std::sync::atomic::{AtomicUsize, Ordering};
| ^^^^^^^^^^^ no `AtomicUsize` in `sync::atomic`
let's instead add a fake AtomicUsize.
As the platform doesn't have atomics we can't implement an Atomic
version of AtomicUsize, so this version is not atomic. Any platform
without atomics is unlikely to have multiple cores, so this shouldn't be
a problem.
This is somewhat based on:
940d2e9d7f
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2020-09-14 08:42:09 -07:00
Alistair Francis
85b8a11565
build.rs: Update the list of non CAS targets
...
Based on the implementation in the headless
crate (https://github.com/japaric/heapless/blob/master/build.rs#L26 ) let's
not enable CAS for three more targets.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2020-09-11 15:47:28 -07:00
Steven Fackler
b77ccefd7e
Merge pull request #409 from Thomasdezeeuw/log-as_str
...
Add Level::as_str
2020-08-24 09:05:36 -04:00
Thomas de Zeeuw
186efede86
Add LevelFilter::as_str
2020-08-24 11:20:25 +02:00
Thomas de Zeeuw
85dad3f61e
Add Level::as_str
...
Returns the string representation of the `Level`.
2020-08-23 19:02:17 +02:00
Ashley Mannix
469a441869
Require Source methods be implemented in test ( #406 )
...
require Source methods be implemented in test
This just makes sure we don't forget to forward Source methods
on types that wrap other sources
2020-08-04 11:35:58 +10:00
Ashley Mannix
803a23b15e
Rework structured value casting ( #396 )
...
Also adds a const-fn based mechanism for pulling concrete values out of generic ones
2020-08-03 18:05:15 +10:00
Ashley Mannix
ca54ac75ce
Merge pull request #405 from diondokter/master
...
Allow Level and LevelFilter to deserialize from the index_variant
2020-07-28 17:52:30 +10:00
Dion Dokter
caaa559a23
Back to u64
2020-07-28 08:17:18 +02:00
Dion Dokter
2d66fe4ce3
Made the variants deserialize as u32 because that's the type that is given when serializing.
...
Added tests
2020-07-27 09:41:04 +02:00
Dion Dokter
067efb50cd
Added deserialization from index.
2020-07-27 09:16:45 +02:00
Ashley Mannix
aa4c0375cd
Merge pull request #404 from KodrAus/cargo/0.4.11
...
Prepare for 0.4.11 release
2020-07-16 10:04:01 +10:00
Ashley Mannix
21715ba7ee
just don't do self updates in ci
2020-07-16 09:49:25 +10:00
Ashley Mannix
ee4bc80680
prepare for 0.4.11 release
2020-07-09 09:51:24 +10:00
Ashley Mannix
813b6ce479
Merge pull request #401 from brettcannon/patch-1
...
Fix a grammatical mistake in the README
2020-06-23 16:14:54 +10:00
Brett Cannon
5821b8a338
Fix a grammatical mistake
2020-06-13 11:22:55 -07:00
Ashley Mannix
9ae6778bd2
Merge pull request #400 from KodrAus/fix/value-fmt
...
Respect fmt trait and flags in Value
2020-06-05 21:21:45 +10:00
Ashley Mannix
c89a4a10b6
bump sval to 0.5.2 for fmt fixes
...
run fmt
2020-06-04 22:30:06 +10:00
Ashley Mannix
43d69c196e
remove unneeded io::Error From impl
2020-06-04 21:13:38 +10:00