You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
microwatt/rust_lib_demo
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>
4 years ago
..
.cargo Add Rust demo 4 years ago
src Add Rust demo 4 years ago
Cargo.toml rust_lib_demo: Update package dependencies to fix a build error 4 years ago
Makefile Add Rust demo 4 years ago
README.md Add Rust demo 4 years ago
Xargo.toml Add Rust demo 4 years ago
bin2hex.py Add Rust demo 4 years ago
head.S Add Rust demo 4 years ago
hello_world.c Add Rust demo 4 years ago
powerpc.lds Add Rust demo 4 years ago

README.md

I made a minimal Rust demo.

This needs a rebuild of the core library with xargo (https://github.com/japaric/xargo) for working soft floating-point support.

Steps:

$ rustup default nightly

$ rustup target add powerpc64le-unknown-linux-gnu

$ rustup component add rust-src

$ cargo install xargo

$ make $ make run

ln -sf hello_world.bin main_ram.bin ../core_tb > /dev/null Hello World Rust i 2 5 5 i 3 3.3333333333333335 3.3333333333333335 [-9, -6, 2, 3] !panicked at 'test', src/lib.rs:58:5