# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.65" name = "socketcan" version = "3.3.1" authors = [ "Marc Brinkmann ", "Frank Pagliughi ", ] description = """ Linux SocketCAN library. Send and receive CAN frames via CANbus on Linux. """ documentation = "https://docs.rs/socketcan" readme = "README.md" license = "MIT" repository = "https://github.com/mbr/socketcan-rs" [[bin]] name = "rcan" required-features = ["utils"] [[example]] name = "tokio_send" required-features = ["tokio"] [[example]] name = "tokio_bridge" required-features = ["tokio"] [[example]] name = "tokio_print_frames" required-features = ["tokio"] [[example]] name = "tokio_average" required-features = ["tokio"] [[example]] name = "smol_send" required-features = ["smol"] [[example]] name = "smol_bridge" required-features = ["smol"] [[example]] name = "smol_print_frames" required-features = ["smol"] [[example]] name = "async_std_send" required-features = ["async-std"] [[example]] name = "async_std_bridge" required-features = ["async-std"] [[example]] name = "async_std_print_frames" required-features = ["async-std"] [dependencies.anyhow] version = "1.0" optional = true [dependencies.async-io] version = "1.13" optional = true [dependencies.async-std] version = "1.12" optional = true [dependencies.bitflags] version = "1.3" [dependencies.byte_conv] version = "0.1.1" [dependencies.clap] version = "4.2" optional = true [dependencies.embedded-can] version = "0.4" [dependencies.futures] version = "0.3" optional = true [dependencies.hex] version = "0.4" [dependencies.itertools] version = "0.10" [dependencies.libc] version = "0.2" [dependencies.log] version = "0.4" [dependencies.mio] version = "0.8" features = ["os-ext"] optional = true [dependencies.nb] version = "1" [dependencies.neli] version = "0.6" optional = true [dependencies.nix] version = "0.26" [dependencies.smol] version = "1.3" optional = true [dependencies.thiserror] version = "1.0" [dependencies.tokio] version = "1" features = ["net"] optional = true [dev-dependencies.anyhow] version = "1.0" [dev-dependencies.async-std] version = "1.12" features = ["attributes"] [dev-dependencies.ctrlc] version = "3.2.2" [dev-dependencies.futures] version = "0.3" [dev-dependencies.futures-timer] version = "0.3" [dev-dependencies.futures-util] version = "0.3" [dev-dependencies.nb] version = "1.0" [dev-dependencies.serial_test] version = "2.0" features = ["async"] [dev-dependencies.tokio] version = "1" features = [ "macros", "rt-multi-thread", "sync", ] [features] async-std = [ "dep:async-std", "dep:async-io", ] default = [ "netlink", "dump", ] dump = [] netlink = ["neli"] netlink_tests = ["netlink"] tokio = [ "dep:tokio", "mio", "futures", ] utils = [ "clap", "anyhow", ] vcan_tests = ["netlink"]