Git Product home page Git Product logo

Comments (4)

qryxip avatar qryxip commented on July 20, 2024 1

失念していました。Rust書いている人はだいたいstablenightlyを使っているしバージョンを明記するのがあまり一般的ではないので... (有名どころのプロジェクトでは流石に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.

kmyk avatar kmyk commented on July 20, 2024

Rust書いている人はだいたいstableかnightlyを使っているしバージョンを明記するのがあまり一般的ではない

そうだったんですね。Rust は新しいバージョンが使われることが多いのは把握してたけれど、6 か月前程度なら動いてほしいと思ってしまいました。5 年前のバージョンでも動くように書くのが普通の言語たちばかり使ってるせいだと思います。

そのような文化が背景にあるのなら (非 Rust ユーザの数次第ですが) 特に書かなくてもよいかもしれません。

from snowchains.

kmyk avatar kmyk commented on July 20, 2024

とりあえず閉じておきますね

from snowchains.

qryxip avatar qryxip commented on July 20, 2024

「明記するのは一般的ではない」は言いすぎだったかもしれません。みんな書いてる人は書いてる。

あとそういえばMSRVのREADME用badgeがありました。これ貼っておきましょう。

https://github.com/bluss/indexmap

from snowchains.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.