Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
af51f58c
Commit
af51f58c
authored
4 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[build] upgrade MIN_RUST_VERSION
parent
88f18a1e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rust-bins/xtask/src/main.rs
+3
-3
3 additions, 3 deletions
rust-bins/xtask/src/main.rs
with
3 additions
and
3 deletions
rust-bins/xtask/src/main.rs
+
3
−
3
View file @
af51f58c
...
...
@@ -17,7 +17,7 @@ use anyhow::Result;
use
std
::
process
::{
Command
,
Output
};
use
structopt
::
StructOpt
;
const
MIN_RUST_VER
T
ION
:
&
str
=
"1.5
0
.0"
;
const
MIN_RUST_VER
S
ION
:
&
str
=
"1.5
1
.0"
;
const
NODE_VERSION
:
&
str
=
"10.22.1"
;
#[derive(StructOpt)]
...
...
@@ -40,12 +40,12 @@ enum DuniterXTaskCommand {
fn
main
()
->
Result
<
()
>
{
let
args
=
DuniterXTask
::
from_args
();
if
!
version_check
::
is_min_version
(
MIN_RUST_VER
T
ION
)
.unwrap_or
(
false
)
if
!
version_check
::
is_min_version
(
MIN_RUST_VER
S
ION
)
.unwrap_or
(
false
)
&&
exec_should_success
(
Command
::
new
(
"rustup"
)
.args
(
&
[
"update"
,
"stable"
]))
.is_err
()
{
eprintln!
(
"Duniter requires Rust {} or higher. If you installed the Rust toolchain via rustup, please execute the command `rustup update stable`."
,
MIN_RUST_VER
T
ION
MIN_RUST_VER
S
ION
);
std
::
process
::
exit
(
1
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment