Skip to content

Commit 0347a7a

Browse files
rilliankinetiknz
authored andcommitted
Move env_logger to dev-dependencies.
When we switched to the `log` crate from our own custom logging in v0.10, I added `env_logger` as an implementation so our code examples would continue to work the same way. However, since `env_logger` is _only_ needed for example code is should be declared as a dev-dependency so it doesn't add a transitive dependency to other builds using the library, which may use a different logging implementation, or a just a different version of `env_logger` than the one we've declared.
1 parent 48a4331 commit 0347a7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mp4parse_capi/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,18 @@ travis-ci = { repository = "https://github.com/mozilla/mp4parse-rust" }
2323

2424
[dependencies]
2525
byteorder = "1.2.1"
26-
env_logger = "0.5.3"
2726
log = "0.4"
2827

2928
# To enable fallible memory allocation, add 'features = ["mp4parse_fallible"]'
3029
# in mp4parse brace.
3130
mp4parse = {version = "0.10.0", path = "../mp4parse"}
3231
num-traits = "0.2.0"
3332

33+
[dev-dependencies]
34+
env_logger = "0.5.3"
35+
3436
[build-dependencies]
3537
cbindgen = "0.4.3"
3638

3739
[features]
3840
fuzz = ["mp4parse/fuzz"]
39-

0 commit comments

Comments
 (0)