remaning base
This commit is contained in:
parent
8bedb69ca4
commit
6eb78d9ca5
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1591,7 +1591,7 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "prometeu-runtime"
|
name = "prometeu-runtime-desktop"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cpal",
|
"cpal",
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
"crates/prometeu-core",
|
"crates/prometeu-core",
|
||||||
"crates/prometeu-runtime",
|
"crates/prometeu-runtime-desktop",
|
||||||
"crates/prometeu",
|
"crates/prometeu",
|
||||||
]
|
]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|||||||
@ -32,7 +32,7 @@ This repository is organized as a Rust workspace and contains several components
|
|||||||
- **[crates/](./crates)**: Software implementation in Rust.
|
- **[crates/](./crates)**: Software implementation in Rust.
|
||||||
- **[prometeu](./crates/prometeu)**: Unified command-line interface (CLI).
|
- **[prometeu](./crates/prometeu)**: Unified command-line interface (CLI).
|
||||||
- **[prometeu-core](./crates/prometeu-core)**: The logical core, VM, and internal OS.
|
- **[prometeu-core](./crates/prometeu-core)**: The logical core, VM, and internal OS.
|
||||||
- **[prometeu-runtime](./crates/prometeu-runtime)**: Host for execution on Desktop systems.
|
- **[prometeu-runtime-desktop](crates/prometeu-runtime-desktop)**: Host for execution on Desktop systems.
|
||||||
- **[docs/](./docs)**: Technical documentation and system specifications.
|
- **[docs/](./docs)**: Technical documentation and system specifications.
|
||||||
- **[devtools-protocol/](./devtools-protocol)**: Definition of the communication protocol for development tools.
|
- **[devtools-protocol/](./devtools-protocol)**: Definition of the communication protocol for development tools.
|
||||||
- **[test-cartridges/](./test-cartridges)**: Cartridge examples and test suites.
|
- **[test-cartridges/](./test-cartridges)**: Cartridge examples and test suites.
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "prometeu-runtime"
|
name = "prometeu-runtime-desktop"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "prometeu-runtime"
|
name = "prometeu-runtime-desktop"
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|
||||||
[package.metadata.dist]
|
[package.metadata.dist]
|
||||||
@ -10,8 +10,8 @@ name = "prometeu"
|
|||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "prometeu-runtime"
|
name = "prometeu-runtime-desktop"
|
||||||
path = "../prometeu-runtime/src/main.rs"
|
path = "../prometeu-runtime-desktop/src/main.rs"
|
||||||
|
|
||||||
# Future binaries (commented)
|
# Future binaries (commented)
|
||||||
# [[bin]]
|
# [[bin]]
|
||||||
|
|||||||
@ -11,4 +11,4 @@ The `prometeu` binary acts as the unified front-end for the ecosystem. It does n
|
|||||||
|
|
||||||
## How it works
|
## How it works
|
||||||
|
|
||||||
The dispatcher locates sibling binaries (`prometeu-runtime`, `prometeuc`, etc.) in the same directory where it is installed. It inherits `stdin`, `stdout`, and `stderr`, and propagates the exit code of the called process.
|
The dispatcher locates sibling binaries (`prometeu-runtime-desktop`, `prometeuc`, etc.) in the same directory where it is installed. It inherits `stdin`, `stdout`, and `stderr`, and propagates the exit code of the called process.
|
||||||
|
|||||||
@ -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` or `prometeuc`.
|
/// components like `prometeu-runtime-desktop` or `prometeuc`.
|
||||||
#[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)]
|
||||||
@ -77,12 +77,12 @@ fn main() {
|
|||||||
|
|
||||||
match cli.command {
|
match cli.command {
|
||||||
Some(Commands::Run { cart }) => {
|
Some(Commands::Run { cart }) => {
|
||||||
dispatch(&exe_dir, "prometeu-runtime", &["--run", &cart]);
|
dispatch(&exe_dir, "prometeu-runtime-desktop", &["--run", &cart]);
|
||||||
}
|
}
|
||||||
Some(Commands::Debug { cart, port }) => {
|
Some(Commands::Debug { cart, port }) => {
|
||||||
dispatch(
|
dispatch(
|
||||||
&exe_dir,
|
&exe_dir,
|
||||||
"prometeu-runtime",
|
"prometeu-runtime-desktop",
|
||||||
&["--debug", &cart, "--port", &port.to_string()],
|
&["--debug", &cart, "--port", &port.to_string()],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -119,7 +119,7 @@ fn dispatch(exe_dir: &Path, bin_name: &str, args: &[&str]) {
|
|||||||
eprintln!(
|
eprintln!(
|
||||||
"prometeu: command '{}' is not yet available in this distribution",
|
"prometeu: command '{}' is not yet available in this distribution",
|
||||||
match bin_name {
|
match bin_name {
|
||||||
"prometeu-runtime" => "run/debug",
|
"prometeu-runtime-desktop" => "run/debug",
|
||||||
"prometeuc" => "build/verify c",
|
"prometeuc" => "build/verify c",
|
||||||
"prometeup" => "pack/verify p",
|
"prometeup" => "pack/verify p",
|
||||||
_ => bin_name,
|
_ => bin_name,
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Get version from git tag or fallback to Cargo.toml version
|
# Get version from git tag or fallback to Cargo.toml version
|
||||||
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || grep -m 1 '^version =' crates/prometeu-runtime/Cargo.toml | cut -d '"' -f 2 || echo "0.1.0")
|
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || grep -m 1 '^version =' crates/prometeu-runtime-desktop/Cargo.toml | cut -d '"' -f 2 || echo "0.1.0")
|
||||||
echo "$VERSION" > VERSION.txt
|
echo "$VERSION" > VERSION.txt
|
||||||
echo "Generated VERSION.txt with version $VERSION"
|
echo "Generated VERSION.txt with version $VERSION"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user