[package]
name = "cookie-factory"
version = "0.3.0-beta3"
authors = ["Geoffroy Couprie <geo.couprie@gmail.com>", "Pierre Chifflier <chifflier@wzdftpd.net>"]
license = "MIT"
repository = "https://github.com/rust-bakery/cookie-factory"
readme = "README.md"
documentation = "http://docs.rs/cookie-factory"
description = "nom inspired serialization library"
categories = ["encoding"]
keywords = ["encoding", "serialization", "nom"]

include = [
  "Cargo.toml",
  "LICENSE",
  "README.md",
  ".gitignore",
  "src/*.rs",
  "src/combinators/*.rs",
  "example/*.rs"
]

[features]
default = ["std"]
std = []

[dev-dependencies]
maplit = "^1.0"

[profile.bench]
debug = true
lto = true
codegen-units = 1

[[example]]
name = "cursor"
required-features = ["std"]
path = "cursor.rs"

[[test]]
name = "http"
required-features = ["std"]
path = "http.rs"

[badges]
travis-ci = { repository = "Geal/cookie-factory" }
maintenance = { status = "actively-developed" }

[package]
name = "cookie-factory"
version = "0.3.0-beta3"
authors = ["Geoffroy Couprie <geo.couprie@gmail.com>", "Pierre Chifflier <chifflier@wzdftpd.net>"]
license = "MIT"
repository = "https://github.com/rust-bakery/cookie-factory"
readme = "README.md"
documentation = "http://docs.rs/cookie-factory"
description = "nom inspired serialization library"
categories = ["encoding"]
keywords = ["encoding", "serialization", "nom"]

include = [
  "Cargo.toml",
  "LICENSE",
  "README.md",
  ".gitignore",
  "src/*.rs",
  "src/combinators/*.rs",
  "example/*.rs"
]

[features]
default = ["std"]
std = []

[dev-dependencies]
maplit = "^1.0"

[profile.bench]
debug = true
lto = true
codegen-units = 1

[[example]]
name = "cursor"
required-features = ["std"]

[[example]]
name = "json"

[[example]]
name = "http"
required-features = ["std"]

[[test]]
name = "http"
required-features = ["std"]

[[test]]
name = "pouet"

[[test]]
name = "combinators-json"

[badges]
travis-ci = { repository = "Geal/cookie-factory" }
maintenance = { status = "actively-developed" }

Fix a couple of cargo warnings and make the tests/examples actually compile
Fix a couple of cargo warnings and make the tests/examples actually compile

cursor.rs and http.rs could not be found because they were specified by
filename instead of the full relative path. We don't have to provide
the filename or path at all if it's the same as the name of the target.

And cargo was complaining about the examples/tests inference behaviour
changes between Rust 2015 and 2018. Fixed by explicitly listing all
tests and examples that should be compiled/run in Cargo.toml.
