#traits #bounds #value #nightly #specialization #channel #debugging

nightly debugit

Debug-print any value without trait bounds using specialization (Rust nightly channel)

4 releases

0.2.0 Nov 27, 2021
0.1.2 Aug 2, 2017
0.1.1 Jul 30, 2017
0.1.0 Oct 2, 2016

#672 in Concurrency

Download history 2339/week @ 2023-12-06 2372/week @ 2023-12-13 959/week @ 2023-12-20 804/week @ 2023-12-27 1364/week @ 2024-01-03 262/week @ 2024-01-10 289/week @ 2024-01-17 177/week @ 2024-01-24 157/week @ 2024-01-31 151/week @ 2024-02-07 353/week @ 2024-02-14 426/week @ 2024-02-21 58/week @ 2024-02-28 55/week @ 2024-03-06 50/week @ 2024-03-13 54/week @ 2024-03-20

229 downloads per month
Used in 11 crates (4 directly)

Apache-2.0 OR MIT

7KB

debugit

Debug-print any value without trait bounds using specialization (Rust nightly channel). Requires Rust nightly.

Please read the API documentation here

|build_status|_ debugit at crates.io

Recent Changes

  • 0.2.0
    • Make debugit nightly-only and require unsafe to call due to soundness issues with specialization.
  • 0.1.2
    • Use version_matches for version checking (compiles faster)
  • 0.1.1
    • Edit docs
    • Fix repository link

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.


lib.rs:

Use debug printlns, without the trait bounds (using specialization to find the right impl anyway).

NOTE: This uses experimental Rust features and is therefore by itself experimental and unstable, and has all the problems of feature(specialization).

For this reason, unsafe is required to use this feature unfortunately.

No runtime deps