1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-01-11 23:43:15 +00:00
Anton Blanchard c37a4c16db rust_lib_demo: Update package dependencies to fix a build error
I'm hitting a build error:

    error[E0050]: method `alloc` has 2 parameters but the declaration in trait `core::alloc::AllocRef::alloc` has 3

Updating the version of linked_list_allocator fixes it. I updated
heapless to while I was at it.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
2020-04-16 17:16:37 +10:00

29 lines
608 B
TOML

[package]
name = "microwatt"
version = "0.1.4"
authors = ["Tom Vijlbrief <tvijlbrief@gmail.com>"]
edition = "2018"
description = "Running Rust on the microwatt"
license = "GPL-3.0"
[lib]
name = "mylib"
crate_type = ["staticlib"]
[profile.dev]
panic = "abort"
[dependencies]
heapless = "0.5.4"
cty = "0.2"
#embedded-hal = "0.2.3"
#panic-halt = "0.2.0"
linked_list_allocator = "0.8.2"
[profile.release]
panic = "abort"
codegen-units = 1 # better optimizations
opt-level = 'z' # Optimize for size.
debug = true # symbols are nice and they don't increase the size on Flash
lto = true # better optimizations