[package]
name = "mp4parse"
version = "0.2.1"
authors = [
  "Ralph Giles <giles@mozilla.com>",
  "Matthew Gregan <kinetik@flim.org>",
]

description = "Parser for ISO base media file format (mp4)"
license = "MPL-2.0"

repository = "https://github.com/mozilla/mp4parse-rust"

# Cargo includes random files from the working directory
# by default! Avoid bloating the package with test files.
exclude = [
  "*.mp4",
]

build = "build.rs"

[dependencies]
byteorder = "0.4.2"
afl = { version = "0.1.1", optional = true }
afl-plugin = { version = "0.1.1", optional = true }
abort_on_panic = { version = "1.0.0", optional = true }

[dev-dependencies]
test-assembler = "0.1.1"

[build-dependencies]
rusty-cheddar = "0.3.1"

[features]
fuzz = ["afl", "afl-plugin", "abort_on_panic"]

[package]
name = "mp4parse"
version = "0.2.1"
authors = [
  "Ralph Giles <giles@mozilla.com>",
  "Matthew Gregan <kinetik@flim.org>",
]

description = "Parser for ISO base media file format (mp4)"
license = "MPL-2.0"

repository = "https://github.com/mozilla/mp4parse-rust"

# Cargo includes random files from the working directory
# by default! Avoid bloating the package with test files.
exclude = [
  "*.mp4",
]

build = "build.rs"

[dependencies]
byteorder = "0.4.2"
afl = { version = "0.1.1", optional = true }
afl-plugin = { version = "0.1.1", optional = true }
abort_on_panic = { version = "1.0.0", optional = true }

[dev-dependencies]
test-assembler = "0.1.1"

[build-dependencies]
rusty-cheddar = "0.3.1"

[features]
fuzz = ["afl", "afl-plugin", "abort_on_panic"]

# Somewhat heavy-handed, but we want at least -Z force-overflow-checks=on.
[profile.release]
debug-assertions = true

Enable debug-assertions in release builds.
Enable debug-assertions in release builds.

We really want to build with, at least, -Z force-overflow-checks=on to
catch integer over/underflows.  Given that it doesn't seem possible to
do this via Cargo without forcing users to build with "cargo rustc",
enabling debug-assertions gives us what we want (and slightly more).
