Comments (1)
First of a short general remark, while we can push for making it possible to build crossplatform test this way they will never be runnable. For us the way forward is to build tests and use an external test harness, in the concrete case we are using the embedded-test crate for such adventures.
A current workaround to don't have rust-analyzer go insane on trying to build that tests the normal way is:
Explicitly tell it inside your Cargo.toml
by defining a section - depending on if you are building a lib, bin or a test - with the harness=false
field.
That will tell the system to not use the inbuilt rust test harness.
For your example project you would add a section like this
[[bin]]
name = "your project name"
harness = false
That said this answer is only trying to answer to the underlying issue of building test against espidf as a crossplatform target and
not going into the detail of defining the right or wrong things inside rust libc
from rust.
Related Issues (20)
- ICE after renaming trait on nightly 1.80 HOT 5
- ICE: wfchk: type parameter .. out of range when instantiating, args=`[{const error}]` HOT 1
- ICE when compiling HOT 5
- Bad dependency on a windows DLL in rust 1.78 HOT 27
- Next-gen solver: Compiler "hang" & eventual OOM when facing complex mutually recursive structs & many projections HOT 6
- std::os::fd module missing on Hermit HOT 2
- rustc segfaults when loading mimalloc with LD_PRELOAD HOT 14
- ICE: kcfi: encode_const: unexpected kind `UnevaluatedConst { .. }`
- Japanese translation of Rust by Example is broken HOT 2
- Reference to temporary variable passed as `&'static dyn` parameter compiles HOT 2
- What should SIMD bitmasks look like? HOT 6
- clarify local_crate_exports_generics
- Miscompile for `riscv64gc-unknown-none-elf` using `inout()` in `asm!()` HOT 1
- "you might have meant to return this value" suggests invalid syntax HOT 1
- tidy error: rustc-perf workspace doesn't have a Cargo.lock
- inherent method selection uses subtyping even when using paths
- "./x.py run miri --stage 1" no longer works HOT 5
- Bootstrap rustc wrapper verbosity not tracked
- Mutex isn't guaranteed to have atomic acquire/release semantics HOT 13
- `unnameable_types` lint emits incorrect visibility syntax HOT 1
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 rust.