Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Mar 30, 2023
1 parent 428c0d3 commit cd471ac
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.rocky
.crit
*.zip
# Created by https://www.toptal.com/developers/gitignore/api/rust
# Edit at https://www.toptal.com/developers/gitignore?templates=rust
Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "rocky"
name = "crit"
description = "Rust cross-compiler"
version = "0.0.1"
authors = ["Andrew Pennebaker <andrew.pennebaker@gmail.com>"]
license = "BSD-2-Clause"
homepage = "https://github.com/mcandre/rocky"
homepage = "https://github.com/mcandre/crit"

[dependencies]
atomic-option = "0.1.2"
Expand All @@ -14,13 +14,13 @@ lazy_static = "1.4.0"
regex = "1.7.3"

# [lib]
# name = "rocky"
# name = "crit"

[profile.release]
codegen-units = 1
lto = true
strip = true

[[bin]]
name = "rocky"
path = "src/rocky.rs"
name = "crit"
path = "src/crit.rs"
4 changes: 2 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ cargo install
# UNINSTALL BINARIES

```console
$ cargo uninstall rocky
$ cargo uninstall crit
```

# SECURITY AUDIT
Expand All @@ -32,6 +32,6 @@ $ cargo audit
# PORT

```console
$ rocky
$ crit
...
```
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# rocky: Rust cross-compiler

![red rock crab](rocky.png)
# crit: Rust cross-compiler

```text
.__ __
___________|__|/ |_
_/ ___\_ __ \ \ __\
\ \___| | \/ || |
\___ >__| |__||__|
\/
```

# CAUTION

Expand All @@ -11,18 +18,18 @@ Work in progress.
```console
$ cd example

$ rocky
$ crit

$ ls .rocky
$ ls .crit
aarch64-apple-darwin
aarch64-linux-android
aarch64-unknown-linux-gnu
...
```

By default, rocky builds in release mode (`-- -r`).
By default, crit builds in release mode (`-- -r`).

See `rocky -h` for more options.
See `crit -h` for more options.

# LICENSE

Expand All @@ -47,7 +54,7 @@ FreeBSD

# CONTRIBUTING

For more details on developing tinyrick itself, see [DEVELOPMENT.md](DEVELOPMENT.md).
For more details on developing crit itself, see [DEVELOPMENT.md](DEVELOPMENT.md).

# CREDITS

Expand Down
10 changes: 2 additions & 8 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@ $ hello
* [Rust](https://www.rust-lang.org/en-US/) 1.64+
* [cross](https://crates.io/crates/cross) 0.2.5+
* [Docker](https://www.docker.com/) 20.10.23+
* [rocky](https://github.com/mcandre/rocky)
* [crit](https://github.com/mcandre/crit)

# PORT

```console
$ rocky
```

# CLEAN

```console
$ rocky -c
$ crit
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/mcandre/rocky
module github.com/mcandre/crit

go 1.20
Binary file removed rocky.png
Binary file not shown.
10 changes: 5 additions & 5 deletions src/rocky.rs → src/crit.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! CLI rocky tool
//! CLI crit tool
extern crate atomic_option;
extern crate ctrlc;
Expand All @@ -12,7 +12,7 @@ use std::path;
use std::process;
use std::sync;

pub static ROCKY_ARTIFACT_ROOT : &str = ".rocky";
pub static CRIT_ARTIFACT_ROOT : &str = ".crit";

lazy_static::lazy_static! {
static ref RUSTUP_TARGET_PATTERN : regex::Regex = regex::Regex::new(r"(\S+)").unwrap();
Expand Down Expand Up @@ -73,7 +73,7 @@ fn main() {
process::exit(1);
}).expect("error registering signal handler");

let artifact_root : &path::Path = path::Path::new(ROCKY_ARTIFACT_ROOT);
let artifact_root : &path::Path = path::Path::new(CRIT_ARTIFACT_ROOT);
let mut target_exclusion_pattern : regex::Regex = DEFAULT_TARGET_EXCLUSION_PATTERNS.clone();
let list_targets : bool;

Expand All @@ -84,7 +84,7 @@ fn main() {


let mut opts : getopts::Options = getopts::Options::new();
opts.optflag("c", "clean", "delete .rocky artifacts directory");
opts.optflag("c", "clean", "delete crit artifacts directory tree");
opts.optopt("e", "exclude-targets", "exclude targets", "<rust regex>");
opts.optflag("l", "list-targets", "list enabled targets");
opts.optflag("h", "help", "print usage info");
Expand All @@ -107,7 +107,7 @@ fn main() {
process::exit(0);
} else if optmatches.opt_present("c") {
if artifact_root.exists() {
_ = fs::remove_dir_all(ROCKY_ARTIFACT_ROOT).unwrap();
_ = fs::remove_dir_all(CRIT_ARTIFACT_ROOT).unwrap();
}

process::exit(0);
Expand Down

0 comments on commit cd471ac

Please sign in to comment.