You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement per-symbol and per-crate versioned-API support #456
Currently we have very weak support for user-meaningful version numbers; a per-crate version number that is possibly mangled into the crate compilation name, but nothing else. Ideally we'd be using a symbol-versioning approach similar to the GNU-style @@vers stuff, outlined in the latter parts of https://mail.mozilla.org/pipermail/rust-dev/2010-December/000164.html and supporting multiple versioned-API exports from a single crate. Lots of work to do here.
The situation is a lot better now and we can do some cool things with versioned crates (see the "crateresolve" tests). #2166 is one minor remaining issue.
AFAIK Rust does mangle symbols according to the versioning info found in crate attributes. Can this be closed in favor of opening more specific bugs on whatever issues remain?
#[symver="MYLIB_1_0"]
fn myfun(); // Accessible so that old binaries still work due to
// an ABI change, but not through new compilations.
#[symver=default] // Defined at the crate level.
fn myfun(); // What is compiled against and put into the linker with
// the default symbol version (defined at the crate level).
// This version may have different semantics, but older
// versions would be supportable without recompiles.
The #[symver] could be placed at any of the module, struct, impl, fn, or crate level and would be inherited. It probably doesn't make sense on traits though. It'd be nice to see a new language have support for much better ABI compatibility support out-of-the-box (out-of-the-crate?).
Does it being far off make this a non-issue? If we close this then it would be harder to find later, when we might want to look into this; whats the point of closing issues when they are not solved?
We have 1,584 open issues, and many of them aren't really actionable. If we want this, someone should write a detailed RFC. There's not really any valuable information in this issue.
And how many closed issues are there that would make it easy to find again? Could a tag be applied saying it should get an RFC? Or make a backlog tag (though github really needs a "not this tag" filter for that to work).
Activity
brson commentedon Apr 8, 2012
The situation is a lot better now and we can do some cool things with versioned crates (see the "crateresolve" tests). #2166 is one minor remaining issue.
bstrie commentedon Apr 10, 2013
AFAIK Rust does mangle symbols according to the versioning info found in crate attributes. Can this be closed in favor of opening more specific bugs on whatever issues remain?
pcwalton commentedon May 16, 2013
I don't believe this is backwards incompatible, renominating.
graydon commentedon May 30, 2013
just a bug, removing milestone/nomination.
catamorphism commentedon Sep 16, 2013
Cleared assignee. Nothing to add otherwise.
mathstuf commentedon Apr 3, 2014
It would be nice to have something like:
The
#[symver]could be placed at any of the module, struct, impl, fn, or crate level and would be inherited. It probably doesn't make sense on traits though. It'd be nice to see a new language have support for much better ABI compatibility support out-of-the-box (out-of-the-crate?).emberian commentedon Jun 19, 2014
Nominating for closure. ABI versioning and stability itself is far off, and we already include crate version in the symbols.
sinistersnare commentedon Jun 19, 2014
Does it being far off make this a non-issue? If we close this then it would be harder to find later, when we might want to look into this; whats the point of closing issues when they are not solved?
emberian commentedon Jun 19, 2014
We have 1,584 open issues, and many of them aren't really actionable. If we want this, someone should write a detailed RFC. There's not really any valuable information in this issue.
mathstuf commentedon Jun 19, 2014
And how many closed issues are there that would make it easy to find again? Could a tag be applied saying it should get an RFC? Or make a backlog tag (though github really needs a "not this tag" filter for that to work).
Merge pull request rust-lang#456 from alexcrichton/cache-things
Custom error for unknown shadow (rust-lang#456)
Merge pull request rust-lang#456 from GuillaumeGomez/clone-gcc
Initial hello world for RMC documentation (rust-lang#456)
chore: remove the `PULL_REQUEST_TEMPLATE` folder (rust-lang#456)
Merge rust-lang#456
Merge pull request rust-lang#456 from solson/rustup