esp-emac 0.3.0

ESP32 EMAC bare-metal Ethernet MAC driver with DMA, RMII, and MDIO
Documentation
# 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.88"
name = "esp-emac"
version = "0.3.0"
authors = [
    "Viacheslav Bocharov <v@baodeep.com>",
    "JetHome (r)",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ESP32 EMAC bare-metal Ethernet MAC driver with DMA, RMII, and MDIO"
documentation = "https://docs.rs/esp-emac"
readme = "README.md"
keywords = [
    "embedded",
    "no-std",
    "esp32",
    "ethernet",
    "emac",
]
categories = [
    "embedded",
    "no-std",
    "hardware-support",
]
license = "GPL-2.0-or-later OR Apache-2.0"
repository = "https://github.com/jethub-iot/esp-emac-rs"

[package.metadata.docs.rs]
default-target = "riscv32imc-unknown-none-elf"
targets = []
features = [
    "mdio-phy",
    "embassy-net",
    "async",
    "defmt",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
async = ["dep:embedded-hal-async"]
default = []
defmt = ["dep:defmt"]
embassy-net = [
    "dep:embassy-net-driver",
    "dep:embassy-sync",
    "dep:critical-section",
]
esp-hal = ["dep:esp-hal"]
mdio-phy = ["dep:eth-mdio-phy"]

[lib]
name = "esp_emac"
path = "src/lib.rs"

[[example]]
name = "embassy_net_lan8720a"
path = "examples/embassy_net_lan8720a.rs"
required-features = [
    "esp-hal",
    "mdio-phy",
    "embassy-net",
]

[dependencies.critical-section]
version = "1.2"
optional = true

[dependencies.defmt]
version = "0.3"
optional = true

[dependencies.embassy-net-driver]
version = "0.2"
optional = true

[dependencies.embassy-sync]
version = "0.8"
optional = true

[dependencies.embedded-hal]
version = "1.0"

[dependencies.embedded-hal-async]
version = "1.0"
optional = true

[dependencies.esp-hal]
version = "1.1.0"
features = [
    "esp32",
    "unstable",
]
optional = true

[dependencies.eth-mdio-phy]
version = "0.2.0"
optional = true

[target.'cfg(not(target_os = "none"))'.dev-dependencies.critical-section]
version = "1.2"
features = ["std"]

[target.'cfg(target_os = "none")'.dev-dependencies.embassy-executor]
version = "0.10"

[target.'cfg(target_os = "none")'.dev-dependencies.embassy-net]
version = "0.9"
features = [
    "dhcpv4",
    "medium-ethernet",
]

[target.'cfg(target_os = "none")'.dev-dependencies.embassy-time]
version = "0.5"

[target.'cfg(target_os = "none")'.dev-dependencies.esp-backtrace]
version = "0.19.0"
features = [
    "esp32",
    "panic-handler",
    "println",
]

[target.'cfg(target_os = "none")'.dev-dependencies.esp-println]
version = "0.17.0"
features = [
    "esp32",
    "uart",
]
default-features = false

[target.'cfg(target_os = "none")'.dev-dependencies.esp-rtos]
version = "0.3.0"
features = [
    "esp32",
    "embassy",
]

[target.'cfg(target_os = "none")'.dev-dependencies.esp-sync]
version = "0.2.1"
features = ["esp32"]

[target.'cfg(target_os = "none")'.dev-dependencies.eth-phy-lan87xx]
version = "0.2"

[target.'cfg(target_os = "none")'.dev-dependencies.static_cell]
version = "2"