Cargo.toml 637 B

1234567891011121314151617181920212223242526
  1. [package]
  2. name = "luat_uart"
  3. version = "0.1.0"
  4. authors = ["chenxuuu <lolicon@papapoi.com>"]
  5. edition = "2021"
  6. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  7. [dependencies]
  8. serialport = "4"
  9. lazy_static = "1.4"
  10. [lib]
  11. name = "luat_uart" #生成dll的文件名
  12. crate-type = ["dylib"]
  13. # ~/.cargo/config
  14. # [target.x86_64-pc-windows-msvc]
  15. # rustflags = ["-C", "target-feature=+crt-static"]
  16. # [target.i686-pc-windows-msvc]
  17. # rustflags = ["-C", "target-feature=+crt-static"]
  18. #编译x86目标的dll
  19. #rustup target add i686-pc-windows-msvc
  20. #cargo build --release --target=i686-pc-windows-msvc