code-path

Crates.iocode-path
lib.rscode-path
version0.3.2
sourcesrc
created_at2023-06-20 08:53:57.090919
updated_at2024-08-05 06:25:09.017924
descriptionA code path macro
homepage
repositoryhttps://github.com/imbolc/code-path
max_upload_size
id894837
size9,489
Imbolc (imbolc)

documentation

README

code-path

License Crates.io Docs.rs

A code path macro

Usage


fn foo() {
    fn bar() {
        assert_eq!(
            code_path::code_path!(),
            "rust_out::main::_doctest_main_src_lib_rs_10_0::foo::bar, src/lib.rs:9:13".into(),
        );
    }
    bar()
}
foo()

Contributing

  • please run [.pre-commit.sh] before sending a PR, it will check everything

License

This project is licensed under the MIT license.

Commit count: 3

cargo fmt