Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCompile with stable Rust #19
Comments
SergioBenitez
added this to the 0.1.0 milestone
Oct 21, 2016
SergioBenitez
modified the milestones:
1.0,
0.1.0
Dec 6, 2016
This comment has been minimized.
This comment has been minimized.
steveklabnik
commented
Dec 23, 2016
•
|
Looks like this primarily depends on rust-lang/rust#38356 (Or syntex) |
This comment has been minimized.
This comment has been minimized.
rrichardson
commented
Dec 23, 2016
|
Syntex should get this onto stable much more quickly, since the macros > 1.1 effort seems to be just beginning to congeal. |
This comment has been minimized.
This comment has been minimized.
steveklabnik
commented
Dec 23, 2016
This needs more than macros 1.1, it needs 2.0. (If it only needed 1.1, then it could go stable in 1.15) |
This comment has been minimized.
This comment has been minimized.
rrichardson
commented
Dec 23, 2016
|
I intended |
This comment has been minimized.
This comment has been minimized.
mgattozzi
commented
Dec 23, 2016
|
I've started working on getting |
This comment has been minimized.
This comment has been minimized.
|
Rocket uses much more than just plugins from nightly. The set of features Rocket currently uses are: #![feature(plugin)]
#![feature(custom_derive)]
#![feature(custom_attribute)]
#![feature(specialization)]
#![feature(conservative_impl_trait)]
#![feature(drop_types_in_const)]
#![feature(associated_consts)]
#![feature(const_fn)]These uses are important and contribute to the pithiness of the API, so they will stick around until they're stabilized. Until then, I don't believe Rocket will run on stable. With that being said, I believe that the ergonomics of |
This comment has been minimized.
This comment has been minimized.
beefsack
commented
Dec 24, 2016
I'd love to see it go stable as soon as possible, but I feel you've got the right values for the project. Accessibility is arguably more important for web frameworks than it is for other frameworks and libraries. |
This comment has been minimized.
This comment has been minimized.
mgattozzi
commented
Dec 24, 2016
|
Just from trying to get it to work with syntex it's hard. I might try some more this week but you're right. It might just be worth it to wait till those features stabilize. |
This was referenced Jan 11, 2017
SergioBenitez
referenced this issue
Mar 17, 2017
Closed
Namespace #[error] behind #[rocket(error)] #231
This comment has been minimized.
This comment has been minimized.
tbu-
commented
Apr 6, 2017
|
The |
This comment has been minimized.
This comment has been minimized.
FractalMatt
commented
May 1, 2017
|
Perhaps you could use something like: In order to allow stable features to compile using stable, but features that require nightly or beta could be used only when compiling from that branch. Currently using Iron myself and would love to switch but it's a high security project and for security reasons, I want to avoid Rust nightly. |
This comment has been minimized.
This comment has been minimized.
FractalMatt
commented
Oct 21, 2017
•
|
It's been a year since this post originally... seems the check boxes in the original post are accurate? Seems to me like getting Rocket out of nightly would be a huge boost for Rust in general but especially for Rocket.. the Rocket team or Rust team should really focus on stabilizing these functions (or finding alternatives?). Why so slow to get there? Have you run this by the Rust higher ups and pushed them a little bit? |
This was referenced Nov 30, 2017
This comment has been minimized.
This comment has been minimized.
est31
commented
Mar 27, 2018
|
i128 just got stabilized will ship in Rust 1.27.0. |
This comment has been minimized.
This comment has been minimized.
tsal
commented
Apr 18, 2018
|
I'm really looking forward to using Rocket in production some day, I'm glad to see there's been some progress recently. :) |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
zxvfxwing
referenced this issue
May 14, 2018
Closed
Please do not rely on a nightly build of Rust. #22
This comment has been minimized.
This comment has been minimized.
mentalbrew
commented
Jul 8, 2018
|
The Rust community is currently in a major push toward releasing the Rust 2018 Edition. Has anybody investigated whether enough features that Rocket depends on in nightly will be available in that edition that the Rocket community could target that release for stable? It seems like it would be a win-win for both efforts if it was remotely feasible. |
This comment has been minimized.
This comment has been minimized.
|
I glanced at the 2018 feature status and most of the important ones for Rocket are not listed:
That does not necessarily mean that these features will not be stabilized this year, just that they are not being targeted as part of the Edition. That being said, editions are cross-crate compatible. Whether Rocket ends up targeting the 2015 or 2018 edition should not significantly affect projects that use it. |
This comment has been minimized.
This comment has been minimized.
est31
commented
Jul 8, 2018
|
Just noting, |
This comment has been minimized.
This comment has been minimized.
|
@est31 Unfortunately, the stabilizing subset is extremely limited and insufficient for Rocket's needs. |
This comment has been minimized.
This comment has been minimized.
cauebs
commented
Jul 13, 2018
|
Now there's an easier way to keep track of these things: https://forge.rust-lang.org/state-of-rust.html |
This comment has been minimized.
This comment has been minimized.
bestouff
commented
Jul 27, 2018
|
Either way it'd be nice to have a "tentative ETA" for stable Rocket. Even if it's "don't expect less than 2 years" that could help a lot people who might want to select it but wonder about how long they have to suffer in nightly. |
This comment has been minimized.
This comment has been minimized.
FractalMatt
commented
Aug 26, 2018
|
@SergioBenitez You should really reach out to the Rust team and ask for them to prioritize these issues, tell them it's holding up release of Rocket. Or maybe someone can volunteer to help fix these issues if they'll help point you in the right direction? I know that getting Rocket-like web servers was being listed as a high priority for getting Rust adoption and Rocket looks like an otherwise amazing one. Team can be found here: Have communicated with Brian in the past who seemed particularly good at responding and helping us out on a far less important issue: |
This comment has been minimized.
This comment has been minimized.
0xcaff
commented
Aug 26, 2018
|
FYI, if you don't want to wait to build web services in rust, check out actix. It works on stable rust. |
This comment has been minimized.
This comment has been minimized.
dataf3l
commented
Sep 28, 2018
|
@0xcaff After trying multiple web frameworks, I have to say really like Rocket. I'm grateful for the efforts made by the iron team, and I value open source contributor's time as much as the next guy, but for me, I think Rocket suits fits my needs better. |
This comment has been minimized.
This comment has been minimized.
ErichDonGubler
commented
Oct 1, 2018
•
|
EDIT: Thanks! |
jebrosen
referenced this issue
Oct 3, 2018
Closed
is it just me, or is the hello_world example broken? error[E0432]: unresolved import `syntax::source_map` #782
BaptisteGelez
referenced this issue
Oct 23, 2018
Closed
[Backend] - Explore migration to Actix-Web #151
This comment has been minimized.
This comment has been minimized.
Xaeroxe
commented
Nov 2, 2018
|
The following workaround has been used by the Amethyst game engine for the absence of a never type pub enum Never {}This type can't be instantiated and thus fills the same purpose. |
This comment has been minimized.
This comment has been minimized.
BanjoFox
commented
Nov 3, 2018
|
Very happy to see this progressing! |
This comment has been minimized.
This comment has been minimized.
jhpratt
commented
Dec 9, 2018
|
Given the recent blogpost, shouldn't the milestone on this be 0.5? |
This comment has been minimized.
This comment has been minimized.
est31
commented
Dec 19, 2018
|
@incubus8 see this blog post for details on the plans: https://rocket.rs/v0.4/news/2018-12-08-version-0.4/ |
This comment has been minimized.
This comment has been minimized.
incubus8
commented
Dec 20, 2018
|
gotcha, sorry for the fuzz
|
This comment has been minimized.
This comment has been minimized.
macpp
commented
Jan 13, 2019
|
Just noting: on the latest nightly mod foo {
macro_rules! bar123 { () => {} }
pub(crate) use bar123 as bar;
}
foo::bar!();It seems that it may be possible to remove |
This comment has been minimized.
This comment has been minimized.
I played with the new export functionality you mention; it's unfortunate that it only works when the application crate targets 2018. I think it would be acceptable to implement the change if 2018 is required for another reason (e.g. |
This comment has been minimized.
This comment has been minimized.
Centril
commented
Mar 8, 2019
|
@jebrosen I would suggest avoiding long term reliance on |
SergioBenitez commentedOct 21, 2016
•
edited by jebrosen
The following features need to be stabilized before Rocket can compile on stable:
The following features are currently used by Rocket but do not need to be stabilized before Rocket can compile on stable because their use in Rocket can somewhat easily be removed:
Update (Feb 07, 2017): Added list of features used by Rocket.
Update (Feb 28, 2017): Added
lookup_hostfeature.Update (Mar 21, 2017):
pub_restrictedwas stabilized!Update (Mar 30, 2017): Added
never_typefeature.Update (Apr 16, 2017): Added
concat_identsfeature.Update (May 19, 2017): Added
struct_field_attributesandmore_io_inner_methodsfeatures.Update (May 19, 2017):
concat_identsis no longer used.Update (May 19, 2017): Added links to tracking issues.
Update (May 20, 2017):
type_ascriptionis no longer used.Update (Jun 19, 2017):
struct_field_attributeswas stabilized!Update (Jun 24, 2017): Added
try_traitfeature.Update (Jul 1, 2017):
more_io_inner_methodswas stabilized!Update (Jul 9, 2017):
associated_constswas stabilized!Update (Sep 7, 2017):
lookup_hostis no longer used.Update (Sep 14, 2017):
drop_types_in_constwas stabilized!Update (Sep 14, 2017): Added
decl_macrofeature.Update (Mar 26, 2018):
conservative_impl_trait,never_type, andi128_typewere stabilized!Update (Apr 22, 2018): Added
fnboxfeature.Update (Apr 26, 2018):
never_typestabilization was reverted (rust-lang/rust#50121).Update (May 5, 2018): Swapped
macro_reexportforuse_extern_macros.Update (Jul 29, 2018): Added
crate_visibility_modifierandtry_fromfeatures.Update (Aug 5, 2018):
custom_deriveis no longer used.Update (Aug 17, 2018):
use_extern_macroswas stabilized!Update (Sep 3, 2018):
const_fnis no longer usedUpdate (Sep 26, 2018): Added
label_break_valuefeature.Update (Oct 9, 2018): Removed compiler plugin features (
custom_attribute,plugin).Update (Oct 9, 2018): Updated
proc_macrofeatures.Update (Mar 9, 2019):
try_fromwas stabilized!