Skip to content

Commit fe6f43e

Browse files
committed
Edition 2018
1 parent 8dff544 commit fe6f43e

10 files changed

Lines changed: 26 additions & 41 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
include:
1616
- build: pinned
1717
os: ubuntu-18.04
18-
rust: 1.36.0
18+
rust: 1.37.0
1919
- build: stable
2020
os: ubuntu-18.04
2121
rust: stable

Cargo.lock

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[package]
22
name = "kickstart"
3-
version = "0.1.8"
3+
version = "1.0.0"
44
description = "A simple way to get started with a project"
5-
authors = ["Vincent Prouillet <prouillet.vincent@gmail.com>"]
5+
authors = ["Vincent Prouillet <hello@vincentprouillet.com>"]
66
license = "MIT"
7+
edition = "2018"
78

89
[dependencies]
910
clap = "2"
10-
tera = "1.0.0-beta.21"
11+
tera = "1"
1112
walkdir = "2"
12-
serde_derive = "1"
13-
serde = "1"
13+
serde = { version = "1", features = ["derive"] }
1414
toml = "0.5"
1515
memchr = "2"
1616
glob = "0.3"

src/bin/kickstart.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
#[macro_use]
2-
extern crate clap;
3-
extern crate kickstart;
4-
51
use std::env;
62
use std::path::Path;
73
use std::error::Error;
84

9-
use clap::{App, Arg, SubCommand, AppSettings};
5+
use clap::{App, Arg, SubCommand, AppSettings, crate_authors, crate_version, crate_description};
106

117
use kickstart::terminal;
128
use kickstart::generation::Template;

src/definition.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
use std::collections::HashMap;
22

33
use toml::Value;
4+
use serde::{Deserialize};
45

5-
use prompt::{ask_string, ask_bool, ask_choices, ask_integer};
6-
use errors::{Result, ErrorKind, new_error};
6+
use crate::prompt::{ask_string, ask_bool, ask_choices, ask_integer};
7+
use crate::errors::{Result, ErrorKind, new_error};
78

89

910
/// A condition for a question to be asked

src/generation.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ use tera::{Tera, Context};
1010
use walkdir::WalkDir;
1111
use glob::Pattern;
1212

13-
use errors::{Result, ErrorKind, new_error};
14-
use utils::{Source, get_source, read_file, write_file, create_directory};
15-
use utils::{is_vcs, is_binary};
16-
use definition::TemplateDefinition;
13+
use crate::errors::{Result, ErrorKind, new_error};
14+
use crate::utils::{Source, get_source, read_file, write_file, create_directory, is_binary, is_vcs};
15+
use crate::definition::TemplateDefinition;
1716

1817

1918
/// The current template being generated

src/lib.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
//! See the [kickstart binary](https://github.com/Keats/kickstart/blob/master/src/bin/kickstart.rs)
77
//! for an example on how to use it.
88
9-
extern crate tera;
10-
extern crate walkdir;
11-
extern crate toml;
12-
#[macro_use]
13-
extern crate serde_derive;
14-
extern crate serde;
15-
extern crate memchr;
16-
extern crate glob;
17-
extern crate regex;
18-
extern crate term;
19-
#[cfg(test)]
20-
extern crate tempfile;
21-
229
mod definition;
2310
mod prompt;
2411
mod utils;

src/prompt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use std::io::{self, Write, BufRead};
33
use regex::Regex;
44
use toml;
55

6-
use errors::{Result, new_error, ErrorKind};
7-
use terminal;
6+
use crate::errors::{Result, new_error, ErrorKind};
7+
use crate::terminal;
88

99
/// Wait for user input and return what they typed
1010
fn read_line() -> Result<String> {

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::path::{Path, PathBuf};
55
use walkdir::DirEntry;
66
use memchr::memchr;
77

8-
use errors::{Result, ErrorKind, new_error};
8+
use crate::errors::{Result, ErrorKind, new_error};
99

1010

1111
#[derive(Debug, Clone, Eq, PartialEq)]

src/validate.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use std::path::Path;
44
use regex::Regex;
55
use toml::{self, Value};
66

7-
use errors::{Result, ErrorKind, new_error};
8-
use definition::TemplateDefinition;
9-
use utils::read_file;
7+
use crate::errors::{Result, ErrorKind, new_error};
8+
use crate::definition::TemplateDefinition;
9+
use crate::utils::read_file;
1010

1111

1212
/// Validate that the struct doesn't have bad data in it

0 commit comments

Comments
 (0)