[package]
name = "rustcap"
version = "0.1.2"
description = "Wrapper for libpcap"
homepage = "https://github.com/jmmk/rustcap"
repository = "https://github.com/jmmk/rustcap"
authors = ["Michael McLellan <jmikem825@gmail.com>"]
keywords = ["pcap", "libpcap"]
license = "MIT"
readme = "README.md"
documentation = "https://docs.rs/rustcap"

[workspace]
members = ["pcap-sys"]

[dependencies]
libc = "=0.2.43"
bitflags = "1.0.4"
pcap-sys = { version = "=0.1", path = "pcap-sys" }
pnet = { version = "0.21.0", optional = true, default-features = false}
git_dep_with_version = { version = "0.1.0", git = "https://github.com/foo/bar" }
git_dep = { git = "https://github.com/foo/bar" }
same_version_1__ = "0.0.0"
same_version_1_ = "0.0.0"
same_version_1 = "0.0.0"

[target.'cfg(windows)'.dependencies.winapi]
version = "=0.3.6"
features = ["ws2def", "ws2ipdef"]

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.37"
js-sys = "0.3.14"
js_relative_import = { path = "../../common/js_relative_import" }

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.14"
features = [
    "AudioBuffer",
    "AudioBufferSourceNode",
    "AudioContext",
    "AudioDestinationNode",
    "AudioNode",
]

[dependencies.dep1]
version = "0.4.2"

[features]
libpnet = ["pnet"]

[dev-dependencies]
# libc = "0.1.1"
# pnet = { version = "0.19.0", optional = true, default-features = false}
# [target.'cfg(windows)'.dependencies.winapi]
# version = "0.3.0"
# features = ["ws2def", "ws2ipdef"]