Comments (4)
失念していました。Rust書いている人はだいたいstable
かnightly
を使っているしバージョンを明記するのがあまり一般的ではないので... (有名どころのプロジェクトでは流石にMSRV (Minimum Supported Rust Version)を明記してたりしますがそれも2世代前(3ヶ月前)だったりします。私の環境にも/usr/bin/cargo
みたいなのはありませんしそれでみんなあまり困らないので...)
「設定で弾く」ことをやろうとしたらこうでしょうか。
#[rustversion::before(1.45.2)]
compile_error!("the MSRV is `1.45.2`");
ちなみにCargo.toml
へのMSRVの記述はまだです。
2495-min-rust-version - The Rust RFC Book
from snowchains.
Rust書いている人はだいたいstableかnightlyを使っているしバージョンを明記するのがあまり一般的ではない
そうだったんですね。Rust は新しいバージョンが使われることが多いのは把握してたけれど、6 か月前程度なら動いてほしいと思ってしまいました。5 年前のバージョンでも動くように書くのが普通の言語たちばかり使ってるせいだと思います。
そのような文化が背景にあるのなら (非 Rust ユーザの数次第ですが) 特に書かなくてもよいかもしれません。
from snowchains.
とりあえず閉じておきますね
from snowchains.
「明記するのは一般的ではない」は言いすぎだったかもしれません。みんな書いてる人は書いてる。
あとそういえばMSRVのREADME用badgeがありました。これ貼っておきましょう。
https://github.com/bluss/indexmap
from snowchains.
Related Issues (20)
- Failed at SanityCheck HOT 8
- Memory usage on AtCoder may be ≧ 10^7 KB = 1GB HOT 1
- Ctrl-C not working while watching submissions HOT 1
- "小数誤差許容問題" in yukicoder
- `https://atcoder.jp/contests/{}/submit` returns 404 HOT 1
- Improve downloading from DropBox
- error: `{ url }` is not a URL for problem in Codeforces
- Cannot handle large input/output
- Add `Checker` variant to `match`
- Missing `#[serde(default)]` for `PartialBatchTestCase::out`
- Ctrl-C not handled at all
- Use `reqwest::cookie::CookieStore`
- **strong** `code` [link](https://example.com) HOT 1
- Wrong URLs are accepted
- AtCoderコンテストURLの正規表現修正 HOT 2
- The format of problem pages on yukicoder has been changed
- Fails on downloading ARC133-A HOT 1
- Dhall cannot parse Windows absolute path HOT 1
- Parsing error on codeforces contests with admin rights
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snowchains.