Mercurial > hg
comparison rust/hg-cpython/Cargo.toml @ 44540:82f51ab7a2dd
rust: add logging utils
This change adds the `log` crate, the community-approved logging facade backed
by Rust core developers as well as the logging-consumer crate `simple_logger`
to build a foundation for logging from Rust.
Using this setup allows us to choose how to log depending on the way `hg-core`
is used: if it's within the context of `hg-cpython`, we might not want to use
it the same way as with a direct cli for example.
Differential Revision: https://phab.mercurial-scm.org/D8252
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Fri, 06 Mar 2020 18:08:13 +0100 |
parents | d8d4fa9a7f18 |
children | 245aec57d76a |
comparison
equal
deleted
inserted
replaced
44539:fe7d2cf0b429 | 44540:82f51ab7a2dd |
---|---|
22 python3-bin = ["cpython/python3-sys"] | 22 python3-bin = ["cpython/python3-sys"] |
23 | 23 |
24 [dependencies] | 24 [dependencies] |
25 hg-core = { path = "../hg-core"} | 25 hg-core = { path = "../hg-core"} |
26 libc = '*' | 26 libc = '*' |
27 simple_logger = "1.6.0" | |
27 | 28 |
28 [dependencies.cpython] | 29 [dependencies.cpython] |
29 version = "0.4" | 30 version = "0.4" |
30 default-features = false | 31 default-features = false |