rename prometeuc to prometeu-compiler
This commit is contained in:
parent
0496afc192
commit
1410a8ff19
32
Cargo.lock
generated
32
Cargo.lock
generated
@ -1887,6 +1887,22 @@ dependencies = [
|
|||||||
name = "prometeu-bytecode"
|
name = "prometeu-bytecode"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "prometeu-compiler"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"clap",
|
||||||
|
"oxc_allocator",
|
||||||
|
"oxc_ast",
|
||||||
|
"oxc_parser",
|
||||||
|
"oxc_span",
|
||||||
|
"prometeu-bytecode",
|
||||||
|
"prometeu-core",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "prometeu-core"
|
name = "prometeu-core"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
@ -1908,22 +1924,6 @@ dependencies = [
|
|||||||
"winit",
|
"winit",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "prometeuc"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"anyhow",
|
|
||||||
"clap",
|
|
||||||
"oxc_allocator",
|
|
||||||
"oxc_ast",
|
|
||||||
"oxc_parser",
|
|
||||||
"oxc_span",
|
|
||||||
"prometeu-bytecode",
|
|
||||||
"prometeu-core",
|
|
||||||
"serde",
|
|
||||||
"serde_json",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "quick-xml"
|
name = "quick-xml"
|
||||||
version = "0.38.4"
|
version = "0.38.4"
|
||||||
|
|||||||
@ -4,7 +4,7 @@ members = [
|
|||||||
"crates/prometeu-runtime-desktop",
|
"crates/prometeu-runtime-desktop",
|
||||||
"crates/prometeu",
|
"crates/prometeu",
|
||||||
"crates/prometeu-bytecode",
|
"crates/prometeu-bytecode",
|
||||||
"crates/prometeuc",
|
"crates/prometeu-compiler",
|
||||||
]
|
]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "prometeuc"
|
name = "prometeu-compiler"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
@ -2,7 +2,7 @@ use clap::{Parser, Subcommand};
|
|||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(name = "prometeuc")]
|
#[command(name = "prometeu-compiler")]
|
||||||
#[command(about = "Prometeu Compiler", long_about = None)]
|
#[command(about = "Prometeu Compiler", long_about = None)]
|
||||||
pub struct Cli {
|
pub struct Cli {
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
@ -15,8 +15,8 @@ path = "../prometeu-runtime-desktop/src/main.rs"
|
|||||||
|
|
||||||
# Future binaries (commented)
|
# Future binaries (commented)
|
||||||
# [[bin]]
|
# [[bin]]
|
||||||
# name = "prometeuc"
|
# name = "prometeu-compiler"
|
||||||
# path = "../prometeuc/src/main.rs"
|
# path = "../prometeu-compiler/src/main.rs"
|
||||||
#
|
#
|
||||||
# [[bin]]
|
# [[bin]]
|
||||||
# name = "prometeup"
|
# name = "prometeup"
|
||||||
|
|||||||
@ -8,7 +8,7 @@ use std::process::Command;
|
|||||||
/// The main entry point for the user. This binary does not implement
|
/// The main entry point for the user. This binary does not implement
|
||||||
/// compilation or execution logic itself; instead, it acts as a smart
|
/// compilation or execution logic itself; instead, it acts as a smart
|
||||||
/// front-end that locates and dispatches commands to specialized
|
/// front-end that locates and dispatches commands to specialized
|
||||||
/// components like `prometeu-runtime-desktop` or `prometeuc`.
|
/// components like `prometeu-runtime-desktop` or `prometeu-compiler`.
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(name = "prometeu")]
|
#[command(name = "prometeu")]
|
||||||
#[command(about = "Dispatcher for the Prometeu ecosystem", long_about = None)]
|
#[command(about = "Dispatcher for the Prometeu ecosystem", long_about = None)]
|
||||||
@ -87,13 +87,13 @@ fn main() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
Some(Commands::Build { .. }) => {
|
Some(Commands::Build { .. }) => {
|
||||||
not_implemented("build", "prometeuc");
|
not_implemented("build", "prometeu-compiler");
|
||||||
}
|
}
|
||||||
Some(Commands::Pack { .. }) => {
|
Some(Commands::Pack { .. }) => {
|
||||||
not_implemented("pack", "prometeup");
|
not_implemented("pack", "prometeup");
|
||||||
}
|
}
|
||||||
Some(Commands::Verify { target }) => match target {
|
Some(Commands::Verify { target }) => match target {
|
||||||
VerifyCommands::C { .. } => not_implemented("verify c", "prometeuc"),
|
VerifyCommands::C { .. } => not_implemented("verify c", "prometeu-compiler"),
|
||||||
VerifyCommands::P { .. } => not_implemented("verify p", "prometeup"),
|
VerifyCommands::P { .. } => not_implemented("verify p", "prometeup"),
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
@ -120,7 +120,7 @@ fn dispatch(exe_dir: &Path, bin_name: &str, args: &[&str]) {
|
|||||||
"prometeu: command '{}' is not yet available in this distribution on {}",
|
"prometeu: command '{}' is not yet available in this distribution on {}",
|
||||||
match bin_name {
|
match bin_name {
|
||||||
"prometeu-runtime-desktop" => "run/debug",
|
"prometeu-runtime-desktop" => "run/debug",
|
||||||
"prometeuc" => "build/verify c",
|
"prometeu-compiler" => "build/verify c",
|
||||||
"prometeup" => "pack/verify p",
|
"prometeup" => "pack/verify p",
|
||||||
_ => bin_name,
|
_ => bin_name,
|
||||||
}, exe_dir.display()
|
}, exe_dir.display()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user