johnthagen / johnthagen/min-sized-rust
Add section with alloc only but not libstd
- Dominant language
- Rust
- Stars
- 9.8k
- Forks
- 247
- PR merge metrics
- No merged PRs in 30d
Description
When https://github.com/rust-lang/rfcs/pull/2480 is stabilized and implemented, it should be possible to create binaries that don't depend on `std` but do depend on `alloc`. This would be a step between `no_std` and `no_main`, because at least you could use the heap. The actual sample hello world code would probably not change much. It would probably be best to show off using a `Vec` in this instance.
This could probably be added now as a `nightly` subproject.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the existing no_std and no_main documentation and the linked RFC 2480, confirming whether the alloc-only setup is stabilized and implemented. Add an alloc-only section with a Vec-based hello-world example when the prerequisite is available; the documentation should clearly distinguish it from no_std and no_main.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100