# 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" name = "husb238" version = "0.1.1" authors = ["Ivan Li "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A HUSB238 driver based on embedded-hal. Support `async` and `sync` features. The HUSB238 is a highly integrated USB Power Delivery (PD) controller as sink role for up to 100W power rating." readme = "README.md" keywords = [ "usb-pd", "embedded-hal-driver", "no-std", "husb238", "async", ] license = "MIT OR Apache-2.0" repository = "https://github.com/IvanLi-CN/husb238-rs" [profile.dev] opt-level = 0 [profile.release] opt-level = "s" lto = "fat" codegen-units = 1 debug = 2 debug-assertions = false overflow-checks = false incremental = false [lib] name = "husb238" path = "src/lib.rs" [[test]] name = "basic" path = "tests/basic.rs" [dependencies.defmt] version = "0.3.3" optional = true [dependencies.embedded-hal] version = "1.0.0" [dependencies.embedded-hal-async] version = "1.0.0" optional = true [dependencies.log] version = "0.4.22" [dependencies.maybe-async-cfg] version = "0.2.5" [dev-dependencies.embedded-hal-mock] version = "0.11.1" [dev-dependencies.tokio] version = "1.41.0" features = [] [features] async = ["dep:embedded-hal-async"] defmt = ["dep:defmt"]