Manishearth / namespacing-rfc

RFC for Packages as Optional Namespaces
47 stars 3 forks source link

Prototype using `/` available for testing out! #10

Open carols10cents opened 3 years ago

carols10cents commented 3 years ago

TL;DR go to https://cratespaces.integer32.com/ and follow the instructions to try out crates-as-namespaces with / as the separator!

If you don't know what this is, check out the text of this draft RFC.

What was built

Thanks to @stephanbuys, @JWorthe, and @tshepang of Caeg Industries who built this prototype!

It consists of:

So you should be able to:

Notably, no changes to rustc are needed for this to work!

I'm managing the running crates.io forked instance -- please ping me if it needs to be cleared out or if it goes down or something.

What wasn't built

We deliberately did not implement support for Cargo features to try and resolve the ambiguous syntax issue; they won't work with this prototype 🤷‍♀️

The forked instance deliberately doesn't include the current crates.io database right now; we're ignoring migration paths for this experiment.

How to help

Please follow the instructions at https://cratespaces.integer32.com/ to try out this behavior and report if it does or does not work as you would expect, given your understanding of the RFC text.

Especially open new issues on this repo for any problems you encounter that we haven't considered yet! Please DO NOT open issues on crates.io's repo as we have not decided whether this is the functionality we want yet and it is definitely not supported for real!

Manishearth commented 3 years ago

This is amazing, thank you everyone who helped make this happen!!

joshtriplett commented 3 years ago

Incredible work! Thank you for putting this together.

jmjoy commented 2 years ago

Will the following situation create a conflict? foo/bar-baz foo-bar/baz

vi commented 2 years ago

Started to try it, but the modified Cargo failed to build.

Maybe it's time to mark this namespacing-rfc (with Cargo and crates.io forks) as officially abandoned?

Manishearth commented 2 years ago

Why would it be abandoned? The RFC is open and active (https://github.com/rust-lang/rfcs/pull/3243), I think currently the team needs to discuss it and come back with a verdict.

SET001 commented 10 months ago

any news on this?