gd32e2-hal 0.26.0

HAL for the GD32E23x series (Cortex-M23), currently the GD32E230
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 = "2024"
name = "gd32e2-hal"
version = "0.26.0"
authors = ["Szizoid"]
build = "build.rs"
exclude = [
    ".cargo",
    ".github",
    ".gitignore",
    "docs",
    "rust-toolchain.toml",
    "scripts",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HAL for the GD32E23x series (Cortex-M23), currently the GD32E230"
documentation = "https://szizoid.github.io/gd32e2-hal/"
readme = "README.md"
keywords = [
    "gd32",
    "gd32e230",
    "cortex-m",
    "hal",
    "embedded-hal",
]
categories = [
    "embedded",
    "hardware-support",
    "no-std",
    "no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Szizoid/gd32e2-hal"

[package.metadata.docs.rs]
default-target = "thumbv8m.base-none-eabi"
targets = []
features = [
    "defmt",
    "gd32e230c8xx",
]

[features]
defmt = [
    "dep:defmt",
    "embedded-hal/defmt-03",
    "fugit/defmt",
]
gd32e230c4xx = []
gd32e230c6xx = []
gd32e230c8xx = []
gd32e230e8xx = []
gd32e230f4xx = []
gd32e230f6xx = []
gd32e230f8xx = []
gd32e230g4xx = []
gd32e230g6xx = []
gd32e230g8xx = []
gd32e230k4tx = []
gd32e230k4ux = []
gd32e230k6tx = []
gd32e230k6ux = []
gd32e230k8tx = []
gd32e230k8ux = []

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

[[example]]
name = "adc"
path = "examples/adc.rs"

[[example]]
name = "adc-interrupt"
path = "examples/adc-interrupt.rs"

[[example]]
name = "capture"
path = "examples/capture.rs"

[[example]]
name = "capture-interrupt"
path = "examples/capture-interrupt.rs"

[[example]]
name = "ck-out"
path = "examples/ck-out.rs"

[[example]]
name = "cmp"
path = "examples/cmp.rs"

[[example]]
name = "crc"
path = "examples/crc.rs"

[[example]]
name = "exti"
path = "examples/exti.rs"

[[example]]
name = "fmc"
path = "examples/fmc.rs"

[[example]]
name = "fmc-interrupt"
path = "examples/fmc-interrupt.rs"

[[example]]
name = "fmc-option-bytes"
path = "examples/fmc-option-bytes.rs"

[[example]]
name = "fwdgt"
path = "examples/fwdgt.rs"

[[example]]
name = "gpio"
path = "examples/gpio.rs"

[[example]]
name = "i2c"
path = "examples/i2c.rs"

[[example]]
name = "i2c-interrupt"
path = "examples/i2c-interrupt.rs"

[[example]]
name = "i2c-registers"
path = "examples/i2c-registers.rs"

[[example]]
name = "pwm"
path = "examples/pwm.rs"

[[example]]
name = "rtt"
path = "examples/rtt.rs"

[[example]]
name = "spi0-interrupt"
path = "examples/spi0-interrupt.rs"

[[example]]
name = "spi0-loopback"
path = "examples/spi0-loopback.rs"

[[example]]
name = "spi1-word"
path = "examples/spi1-word.rs"
required-features = ["gd32e230c8xx"]

[[example]]
name = "timer"
path = "examples/timer.rs"

[[example]]
name = "timer-delay"
path = "examples/timer-delay.rs"

[[example]]
name = "timer-interrupt"
path = "examples/timer-interrupt.rs"

[[example]]
name = "usart-9bit"
path = "examples/usart-9bit.rs"

[[example]]
name = "usart-dma"
path = "examples/usart-dma.rs"

[[example]]
name = "usart-echo"
path = "examples/usart-echo.rs"

[[example]]
name = "usart-interrupt"
path = "examples/usart-interrupt.rs"

[[example]]
name = "usart-parity"
path = "examples/usart-parity.rs"

[[example]]
name = "usart-parity-error"
path = "examples/usart-parity-error.rs"

[[example]]
name = "wwdgt"
path = "examples/wwdgt.rs"

[dependencies.cortex-m]
version = "0.7.7"

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

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

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

[dependencies.embedded-io]
version = "0.7.1"

[dependencies.fugit]
version = "0.4.0"

[dependencies.gd32e2]
version = "0.9.1"
features = [
    "gd32e230",
    "rt",
    "critical-section",
]

[dependencies.nb]
version = "1.0"

[dependencies.paste]
version = "1.0"

[dev-dependencies.cortex-m]
version = "0.7.7"
features = ["critical-section-single-core"]

[dev-dependencies.cortex-m-rt]
version = "0.7.3"

[dev-dependencies.critical-section]
version = "1.1"

[dev-dependencies.defmt]
version = "1.1"

[dev-dependencies.defmt-rtt]
version = "1.3"

[dev-dependencies.panic-halt]
version = "0.2.0"

[profile.dev]
opt-level = 1

[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
debug = 2
overflow-checks = false