2020-06-15 15:40:39 +08:00
|
|
|
[package]
|
|
|
|
categories = ["embedded", "no-std"]
|
|
|
|
name = "enc424j600"
|
2021-01-26 17:40:34 +08:00
|
|
|
description = "Embbeded Rust Ethernet driver for ENC424J600 Ethernet controller with SPI interface"
|
|
|
|
authors = ["Harry Ho <hh@m-labs.hk>", "Dip Cheung <dc@m-labs.hk>"]
|
2023-07-03 19:50:06 +08:00
|
|
|
version = "0.3.0"
|
2020-06-15 15:40:39 +08:00
|
|
|
keywords = ["ethernet", "eth", "enc424j600", "stm32", "stm32f4xx"]
|
2023-07-03 20:48:02 +08:00
|
|
|
repository = "https://git.m-labs.hk/M-Labs/ENC424J600"
|
2020-06-15 15:40:39 +08:00
|
|
|
edition = "2018"
|
2021-01-18 13:21:52 +08:00
|
|
|
license = "BSD-2-Clause"
|
2020-06-15 15:40:39 +08:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
volatile-register = "0.2"
|
|
|
|
aligned = "0.3"
|
2020-08-24 12:07:45 +08:00
|
|
|
embedded-hal = "0.2"
|
2023-07-03 19:43:12 +08:00
|
|
|
smoltcp = { version = "0.7.0", default-features = false, features = [ "socket-raw", "proto-ipv4",
|
|
|
|
"proto-ipv6", "socket-tcp", "ethernet"], optional = true }
|
2023-07-03 18:21:26 +08:00
|
|
|
cortex-m = {version = "0.5", optional = true }
|
|
|
|
|
2020-12-29 16:53:43 +08:00
|
|
|
# Optional dependencies for building examples
|
2023-07-03 18:21:26 +08:00
|
|
|
[dev-dependencies]
|
2023-07-03 19:39:50 +08:00
|
|
|
stm32f4xx-hal = { version = "0.8", features = ["stm32f407", "rt"] }
|
2023-07-03 18:21:26 +08:00
|
|
|
cortex-m-rt = "0.6"
|
|
|
|
cortex-m-rtic = "0.5.3"
|
|
|
|
panic-itm = "0.4"
|
|
|
|
log = "0.4"
|
2020-06-15 15:40:39 +08:00
|
|
|
|
|
|
|
[features]
|
2020-06-16 17:34:16 +08:00
|
|
|
smoltcp-phy = ["smoltcp"]
|
2021-06-03 15:03:43 +08:00
|
|
|
cortex-m-cpu = ["cortex-m"]
|
2020-06-15 15:40:39 +08:00
|
|
|
default = []
|
|
|
|
|
2020-06-18 15:00:49 +08:00
|
|
|
[[example]]
|
|
|
|
name = "tx_stm32f407"
|
2023-07-03 18:21:26 +08:00
|
|
|
required-features = ["smoltcp", "cortex-m-cpu"]
|
2020-06-18 15:00:49 +08:00
|
|
|
|
2020-06-24 14:17:07 +08:00
|
|
|
[[example]]
|
|
|
|
name = "tcp_stm32f407"
|
2023-07-03 18:21:26 +08:00
|
|
|
required-features = ["smoltcp", "cortex-m-cpu"]
|
2020-06-24 14:17:07 +08:00
|
|
|
|
2020-06-15 15:40:39 +08:00
|
|
|
[profile.release]
|
|
|
|
codegen-units = 1
|
|
|
|
incremental = false
|
|
|
|
debug = true
|
|
|
|
opt-level = "s"
|
|
|
|
lto = true
|