ENC424J600/Cargo.toml

54 lines
1.9 KiB
TOML
Raw Normal View History

[package]
categories = ["embedded", "no-std"]
name = "enc424j600"
description = "Embbeded Rust Ethernet driver for ENC424J600 Ethernet controller with SPI interface, compatible with STM32F4xx"
authors = ["Harry Ho <hh@m-labs.hk>"]
2021-01-20 15:22:24 +08:00
version = "0.2.0"
keywords = ["ethernet", "eth", "enc424j600", "stm32", "stm32f4xx"]
2021-01-18 13:16:58 +08:00
repository = "https://git.m-labs.hk/M-Labs/ENC424J600"
edition = "2018"
2021-01-18 13:21:52 +08:00
license = "BSD-2-Clause"
[dependencies]
volatile-register = "0.2"
aligned = "0.3"
embedded-hal = "0.2"
smoltcp = { version = "0.6.0", default-features = false, features = ["proto-ipv4", "proto-ipv6", "socket-icmp", "socket-udp", "socket-tcp", "log", "verbose", "ethernet"], optional = true }
2020-12-29 16:53:43 +08:00
# Optional dependencies for building examples
stm32f4xx-hal = { version = "0.8", optional = true }
cortex-m = { version = "0.5", optional = true }
cortex-m-rt = { version = "0.6", optional = true }
cortex-m-rtic = { version = "0.5.3", optional = true }
2020-12-29 16:53:43 +08:00
panic-itm = { version = "0.4", optional = true }
log = { version = "0.4", optional = true }
2021-01-21 15:28:10 +08:00
# Optional dependencies for using NAL with somltcp and cortex_m
heapless = { version = "0.5.6", optional = true }
embedded-nal = { version = "0.1.0", optional = true }
[features]
2020-06-16 17:34:16 +08:00
smoltcp-phy = ["smoltcp"]
2020-06-24 14:17:07 +08:00
smoltcp-phy-all = [
"smoltcp/socket-raw", "smoltcp/socket-udp", "smoltcp/socket-tcp",
"smoltcp/proto-ipv4", "smoltcp/proto-ipv6"
]
2020-12-29 16:53:43 +08:00
# Example-based features
2020-12-29 17:01:28 +08:00
tx_stm32f407 = ["stm32f4xx-hal/stm32f407", "cortex-m", "cortex-m-rtic", "panic-itm", "log"]
tcp_stm32f407 = ["stm32f4xx-hal/stm32f407", "cortex-m", "cortex-m-rt", "cortex-m-rtic", "smoltcp-phy-all", "smoltcp/log", "panic-itm", "log"]
2021-01-21 15:28:10 +08:00
nal = [ "smoltcp-phy", "heapless", "embedded-nal", "cortex-m", "cortex-m-rtic" ]
default = []
2020-06-18 15:00:49 +08:00
[[example]]
name = "tx_stm32f407"
required-features = ["tx_stm32f407"]
2020-06-18 15:00:49 +08:00
2020-06-24 14:17:07 +08:00
[[example]]
name = "tcp_stm32f407"
required-features = ["tcp_stm32f407"]
2020-06-24 14:17:07 +08:00
[profile.release]
codegen-units = 1
incremental = false
debug = true
opt-level = "s"
lto = true