Skip to content
Snippets Groups Projects
Select Git revision
  • a7a5bf8d660a83636113ea67b541cc43d159df3c
  • master default protected
2 results

Cargo.toml

Blame
  • Forked from Per Lindgren / e7020e_2021
    Source project has a limited visibility.
    This project manages its dependencies using Cargo. Learn more
    Cargo.toml 1.67 KiB
    [package]
    authors = ["Per Lindgren <per.lindgren@ltu.se>"]
    edition = "2018"
    readme = "README.md"
    name = "app"
    version = "0.1.0"
    
    [dependencies]
    cortex-m = "0.6.4"
    cortex-m-rt = "0.6.13"
    cortex-m-semihosting = "0.3.7"
    cortex-m-rtic = "0.5.5"
    embedded-hal = "0.2.4"
    usb-device = "0.2.7"
    
    # Panic handlers, comment all but one to generate doc!
    panic-halt = "0.2.0"
    
    # Uncomment for the panic example.
    #panic-itm = "0.4.2"
    
    # Uncomment for the rtt-timing example.
    panic-rtt-target = { version = "0.1.1", features = ["cortex-m"] }
    
    # Uncomment for the panic example.
    #panic-semihosting = "0.5.6"
    
    # Tracing
    rtt-target = { version = "0.3.0", features = ["cortex-m"] }
    
    [dependencies.stm32f4]
    version = "0.12.1"
    features = ["stm32f411", "rt"]
    
    # Uncomment for the allocator example.
    # alloc-cortex-m = "0.4.0"
    
    
    [dependencies.stm32f4xx-hal]
    version = "0.8.3"
    features = ["rt", "stm32f411", "usb_fs"] 
    # Enable to use the latest git version
    # gitgit = "https://github.com/stm32-rs/stm32f4xx-hal"
    # Enable to use your forked/cloned local repo 
    path = "../stm32f4xx-hal"
    
    
    # this lets you use `cargo fix`!
    [[bin]]
    name = "app"
    test = false
    bench = false
    
    [profile.dev]
    incremental = false
    codegen-units = 1
    
    [profile.release]
    codegen-units = 1 # better optimizations
    debug = true      # symbols are nice and they don't increase the size on Flash
    lto = true        # better optimizations
    
    
    
    # [features]
    # nightly = ["cortex-m/inline-asm"]
    
    # # this lets you use `cargo fix`!
    # [[bin]]
    # name = "app"
    # test = false
    # bench = false
    
    # [profile.release]
    # codegen-units = 1 # better optimizations
    # debug = true      # symbols are nice and they don't increase the size on Flash
    # lto = true        # better optimizations