GithubHelp home page GithubHelp logo

Possible changes for 2.0 about indexmap HOT 6 CLOSED

indexmap-rs avatar indexmap-rs commented on September 26, 2024
Possible changes for 2.0

from indexmap.

Comments (6)

bluss avatar bluss commented on September 26, 2024

Added item for a proper std crate feature. Makes it easier for our rdeps

from indexmap.

cuviper avatar cuviper commented on September 26, 2024

If we adopt MSRV 1.36 and a new default hasher, I think there will be no more need for std at all. But it's not certain that we should do that.

from indexmap.

bluss avatar bluss commented on September 26, 2024

I just have an attitude problem with ahash, would be more charmed by a pure-rust hash function.

But for an actual argument, for a public dependency we need them to have an 1.x version or equivalent.

from indexmap.

ammkrn avatar ammkrn commented on September 26, 2024

Are there any plans to support the Allocator trait/allocator_api feature? hashbrown::raw::RawTable and std::Vec both expose the extra A : Allocator type parameter, so it seems possible.

from indexmap.

cuviper avatar cuviper commented on September 26, 2024

I've thought about Allocator, but it's difficult to predict when that will even be stable in the standard library. You can't really do anything with that on Vec until it's stable, while hashbrown sort of cheats by defining their own private copy when the nightly feature isn't enabled.

(I'm generally not inclined to use unstable features in this crate, not even behind a feature flag.)

from indexmap.

ammkrn avatar ammkrn commented on September 26, 2024

Thanks for taking a minute to explain the issue. I have a use case for this, but I'm with you on not wanting to support unstable features, so I'm happy if it's on the "probably at some point after stabilization if we feel like it" list.

from indexmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.