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

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

#9 in #specialization

Download history 30/week @ 2024-07-20 51/week @ 2024-07-27 28/week @ 2024-08-03 33/week @ 2024-08-10 25/week @ 2024-08-17 28/week @ 2024-08-24 45/week @ 2024-08-31 20/week @ 2024-09-07 20/week @ 2024-09-14 149/week @ 2024-09-21 81/week @ 2024-09-28 22/week @ 2024-10-05 42/week @ 2024-10-12 23/week @ 2024-10-19 38/week @ 2024-10-26 38/week @ 2024-11-02

143 downloads per month
Used in 12 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