Comments (1)
Generally libraries don't implement things such as the global alloc or panic handler, those are done in the final binary.
If you still want to specify this at compile time I think the easiest solution is an environment variable that gets expanded at compile-time: https://doc.rust-lang.org/std/macro.env.html
from embedded-alloc.
Related Issues (20)
- Does not build on latest nightly HOT 3
- Alloc -> AllocRef HOT 1
- Sync with latest cortex-m version
- Possible Broken Dependency: linked_list_allocator
- Make a new release on crates.io HOT 4
- Heap allocation considerations for embedded systems HOT 8
- Is there anyway to use panic_semihosting with this crate? HOT 1
- error[E0015]: calls in constant functions are limited to constant functions HOT 1
- Release? HOT 1
- Build is failing on thumbv6 HOT 1
- CI Failure
- add example that proves extern "C" malloc and free
- CI Failure HOT 1
- This crate should be flagged as single-core usage only HOT 2
- Can not build for STM32 - undefined symbol critical section HOT 1
- Get undefined reference to `debug_lower_hex` when using alloc crate
- CI Failure
- CI Failure HOT 1
- CI Failure
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 embedded-alloc.