-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: please make unstable truly unstable #128
Comments
The |
so so not sure why limit macro to old version (it runs on dev machine with for sure has compiler not 2 years old). it is clear why |
It's just a clippy lint called |
The Also Linux distros come with a preinstalled rust toolchain by default which is often quite outdated (#81 (comment)) |
For stable version fine to support old. No problem. For unstable version, that weird. Considering 1.59 version to be |
I mean fine to compile stable version of bon with rust target to be 1.59(so may be 1.63 is more reasonable?). But compiling unstable version of bon with rust target 1.59 does not have any sense. Unless I miss something? |
bon must always comply with 1.59 MSRV no matter what version of toolchain is used to be always be consistent (except for known exceptions marked with |
I don't understand what change you propose, and why |
I assume you confuse unstable toolchain and "unstable" cargo feature flag, which absolutely have nothing in common. The feature flag is just a marker for the user to sign the contract that bon may break the API of See my PR comment. I didn't ask to put if !cfg!(feature = "unstable") && self.getter.is_some() {
bail!(...)
} The getters feature must compile on all versions of rustc supported by bon because it'll eventually become stable. Anyone trying out that feature is not required to install the unstable rust toolchain |
This is following the similar approach of clap https://github.com/clap-rs/clap/blob/df1efca03509f736e26d2f16766b7ea06acc3ecf/Cargo.toml#L169. I think it means the feature flag should be called |
installed 1.59 rust, it fails
so not clear at all what currently checked, but for sure no that specific linuxes with old version of rust can use bon macro. they cannot use bon macro using rust compiler version of 1.59. |
They can, they just need to use lower versions of dependencies. Take a look at how Lines 35 to 38 in 3217b4b
|
@Veetaha not sure I get that. So you propose to have attribute to be available to put by users, but when macro generates code it just ignores it? Is not that bad? I supposed if get does not work it should not be available to put as macro attribute by user? |
No, the macro must return an error. See the |
why not singular |
would not rust suggest option to type that field and than error during compilation in this case? how to ensure there is not suggestion to user to type |
There are no completions in IDEs for proc macro attributes (except for some manual hacks that I did, which are limited and don't cover member-level attributes). |
currently unstable tests on 2 years old version of rust, it is wrong. 2 years version of rust is not unstable anymore - i would say that version does not exist and testing on is dummy stub (so it tests nothing at all).
The text was updated successfully, but these errors were encountered: