1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//! Project-specific constant declarations
//!

/// Base constants

/// Project binary command name
pub const BINARY_NAME: &str = "rx";
/// The directory which contains *examples* for Cargo projects
pub const EXAMPLES_FOLDER: &str = "examples";
/// Rust file extension
pub const RUST_FILE_EXT: &str = "rs";

/// Filenames

/// Name of the `Cargo.toml` file in Cargo projects
pub const CARGO_TOML: &str = "Cargo.toml";
/// Name of the `main.rs` file in Cargo projects
pub const MAIN_RS: &str = "main.rs";
/// Name of the `settings.toml` file for local project cache
pub const SETTINGS_TOML: &str = "settings.toml";

/// Commands

/// The `cargo` command
pub const CARGO_CMD: &str = "cargo";
/// The `fzf` (fuzzy finder) command
pub const FZF_CMD: &str = "fzf";

/// Newline character as bytes
pub const NL: &u8 = &b'\n';

/// Space character as bytes
pub const SPACE: &u8 = &b' ';

#[cfg(any(target_os = "windows", target_arch = "wasm32"))]
pub(crate) const INVALID_UTF8: &str = "unexpected invalid UTF-8 code point";