Changeset - cfcb12a625ff
[Not reviewed]
0 2 0
mh - 3 years ago 2022-02-08 14:01:38
contact@maxhenger.nl
Bump rust compiler edition to 2021
2 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
bin-compiler/Cargo.toml
Show inline comments
 
@@ -3,11 +3,11 @@ name = "reowolf_compiler"
 
version = "0.1.0"
 
authors = [
 
    "Max Henger <henger@cwi.nl>",
 
    "Christopher Esterhuyse <esterhuy@cwi.nl>",
 
    "Hans-Dieter Hiep <hdh@cwi.nl>"
 
]
 
edition = "2018"
 
edition = "2021"
 

	
 
[dependencies]
 
reowolf_rs = { path = "../" }
 
clap = "3.0"
 
\ No newline at end of file
bin-compiler/src/main.rs
Show inline comments
 
use clap::{App, Arg};
 
use reowolf_rs as rw;
 

	
 
fn main() {
 
    let app = App::new("rwc")
 
        .author("Henger, M.")
 
        .version(env!(CARGO_PKG_VERSION))
 
        .version(env!("CARGO_PKG_VERSION"))
 
        .about("Reowolf compiler")
 
        .arg(
 
            Arg::new("input")
 
                .long("input")
 
                .short('i')
 
                .help("input files")
 
                .required(true)
 
                .takes_value(true)
 
                .multiple_occurrences(true)
 
        );
 

	
 
    let app = app.get_matches();
 
    let input_files = app.values_of("input");
 
    if input_files.is_none() {
 
        println!("Expected at least one input file");
0 comments (0 inline, 0 general)