CAD97 / CAD97/pointer-utils

`slice-dst`: Support allocator API

Open
#87 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
137
Forks
15
PR merge metrics
No merged PRs in 30d

Description

It seems that `slice-dst` can only be allocated with the global allocator. Although allocator_api is currently unstable, there is a widely used crate [allocator-api2](https://docs.rs/allocator-api2) that mirrors types and traits from [allocator_api](https://doc.rust-lang.org/unstable-book/library-features/allocator-api.html). Therefore, I think `slice-dst` can introduce a feature that enables allocator API mirrored by `allocator-api2` similar to [bumpalo](https://docs.rs/bumpalo).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the slice-dst implementation and comparing bumpalo's allocator-api2 support. Review the allocator_api and allocator-api2 traits and types to determine the feature's integration points. Done means slice-dst can use allocator-api2-backed allocation without requiring the global allocator, with coverage for the supported allocator paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.