Comments (3)
Hey, @japaric I would like to help on this one. I am first trying to run one of the examples (one-task) in cortex-m-rtfm
crate which points to my local copy of rtfm-syntax
, just to get started with things.
On running cargo run --example one-task
, it fails and
compiletest_rs
does not compile for me:
➜ cortex-m-rtfm git:(master) ✗ cargo run --example one-task
Compiling compiletest_rs v0.3.6
error[E0433]: failed to resolve. Could not find `OutputFormat` in `test`
--> /home/creativcoder/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.6/src/lib.rs:97:41
|
97 | format: if config.quiet { test::OutputFormat::Terse } else { test::OutputFormat::Pretty },
| ^^^^^^^^^^^^ Could not find `OutputFormat` in `test`
error[E0433]: failed to resolve. Could not find `OutputFormat` in `test`
--> /home/creativcoder/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.6/src/lib.rs:97:76
|
97 | format: if config.quiet { test::OutputFormat::Terse } else { test::OutputFormat::Pretty },
| ^^^^^^^^^^^^ Could not find `OutputFormat` in `test`
error[E0560]: struct `test::TestOpts` has no field named `format`
--> /home/creativcoder/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.6/src/lib.rs:97:9
|
97 | format: if config.quiet { test::OutputFormat::Terse } else { test::OutputFormat::Pretty },
| ^^^^^^^ `test::TestOpts` does not have this field
|
= note: available fields are: `list`, `filter`, `filter_exact`, `run_ignored`, `run_tests` ... and 8 others
error: aborting due to 3 previous errors
error: Could not compile `compiletest_rs`.
I am on rust rustc 1.25.0-nightly (15a1e2844 2018-01-20)
Which nightly version should i use ?
from rtic.
I would like to help on this one.
Awesome.
compiletest_rs v0.3.6 (call cargo update
to update the lockfile) and nightly-2018-02-11 work for me. But don't run the examples like that because they are not mean to be run on x86_64. You can run the test suite by doing exactly what Travis does:
$ # run compile-fail tests on the hosts
$ TARGET=x86_64-unknown-linux-gnu bash ci/script.sh
$ # check that the examples still compile
$ TARGET=thumbv7m-none-eabi bash ci/script.sh
from rtic.
Cool, tests are green now. Off to porting :)
from rtic.
Related Issues (20)
- How to invoke code before RTIC main part. HOT 1
- Docs: Examples are broken and not showing HOT 3
- `atomic-polyfill` is deprecated
- rtic_monotonics 2.0 not in crates.io??? HOT 5
- Consider adding a hook to run code at the beginning of the entry point HOT 3
- SPI devices on shared bus (embedded-hal-bus) HOT 3
- Locked Status with Multiple Shared Resources HOT 2
- Software tasks and the stack HOT 2
- Support for embedded_alloc
- Call to SCB::sys_reset() results in locked up core. HOT 3
- rtic-monotonic on stm32 TIM20 or TIM17 HOT 1
- How to get the time stamp in a RTIC Rust Embedded application HOT 1
- Proplems while setting up rtic 2.1.1 HOT 2
- Multicore Support HOT 3
- How can I share the spawn handle? HOT 1
- rtic-monotonic panics HOT 9
- Cannot use higher priority tasks on STM32G030 with Embassy HAL
- Unit-Testing with RTIC v2
- rtic-monotonics v2.0.2 not compiling
- rtic::app macro "should be producing references to ::core::result::Result, not unqualified Result"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtic.