Add rust module for launching launcher
This commit is contained in:
parent
165f937ab3
commit
de13240f87
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/LauncherExe/LauncherExe.iml" filepath="$PROJECT_DIR$/LauncherExe/LauncherExe.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
7
LauncherExe/Cargo.lock
generated
Normal file
7
LauncherExe/Cargo.lock
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
|
version = 3
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "LauncherExe"
|
||||||
|
version = "0.1.0"
|
8
LauncherExe/Cargo.toml
Normal file
8
LauncherExe/Cargo.toml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[package]
|
||||||
|
name = "LauncherExe"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
8
LauncherExe/LauncherExe.iml
Normal file
8
LauncherExe/LauncherExe.iml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="GENERAL_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$/.." />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
19
LauncherExe/src/main.rs
Normal file
19
LauncherExe/src/main.rs
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
use std::process::Command;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
|
||||||
|
let mut cmd = Command::new("java");
|
||||||
|
cmd.arg("-jar");
|
||||||
|
cmd.arg("../JAML.jar");
|
||||||
|
|
||||||
|
match cmd.output() {
|
||||||
|
Ok(output) => {
|
||||||
|
unsafe {
|
||||||
|
println!("Output: {}", String::from_utf8_unchecked(output.stdout));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Err(e) => {
|
||||||
|
println!("{}", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
LauncherExe/target/.rustc_info.json
Normal file
1
LauncherExe/target/.rustc_info.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"rustc_fingerprint":11831713321380901599,"outputs":{"2797684049618456168":{"success":false,"status":"exit code: 1","code":1,"stdout":"","stderr":"error: `-Csplit-debuginfo` is unstable on this platform\n\n"},"17598535894874457435":{"success":true,"status":"","code":0,"stdout":"rustc 1.58.1 (db9d1b20b 2022-01-20)\nbinary: rustc\ncommit-hash: db9d1b20bba1968c1ec1fc49616d4742c1725b4b\ncommit-date: 2022-01-20\nhost: x86_64-pc-windows-msvc\nrelease: 1.58.1\nLLVM version: 13.0.0\n","stderr":""},"931469667778813386":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\svtra\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\ndebug_assertions\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""}},"successes":{}}
|
3
LauncherExe/target/CACHEDIR.TAG
Normal file
3
LauncherExe/target/CACHEDIR.TAG
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Signature: 8a477f597d28d172789f06886806bc55
|
||||||
|
# This file is a cache directory tag created by cargo.
|
||||||
|
# For information about cache directory tags see https://bford.info/cachedir/
|
0
LauncherExe/target/debug/.cargo-lock
Normal file
0
LauncherExe/target/debug/.cargo-lock
Normal file
@ -0,0 +1 @@
|
|||||||
|
c18d3f0804114e40
|
@ -0,0 +1 @@
|
|||||||
|
{"rustc":16065624160775160083,"features":"[]","target":15815601478030173119,"profile":9251013656241001069,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\LauncherExe-e1851e6cdec331f8\\dep-bin-LauncherExe"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
@ -0,0 +1,2 @@
|
|||||||
|
{"message":"crate `LauncherExe` should have a snake case name","code":{"code":"non_snake_case","explanation":null},"level":"warning","spans":[{"file_name":"src\\main.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(non_snake_case)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"convert the identifier to snake case: `launcher_exe`","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: crate `LauncherExe` should have a snake case name\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m= \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15mnote\u001b[0m\u001b[0m: `#[warn(non_snake_case)]` on by default\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m= \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15mhelp\u001b[0m\u001b[0m: convert the identifier to snake case: `launcher_exe`\u001b[0m\n\n"}
|
||||||
|
{"message":"1 warning emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: 1 warning emitted\u001b[0m\n\n"}
|
1
LauncherExe/target/debug/LauncherExe.d
Normal file
1
LauncherExe/target/debug/LauncherExe.d
Normal file
@ -0,0 +1 @@
|
|||||||
|
X:\Java\Launchers\JAML\LauncherExe\target\debug\LauncherExe.exe: X:\Java\Launchers\JAML\LauncherExe\src\main.rs
|
BIN
LauncherExe/target/debug/LauncherExe.exe
Normal file
BIN
LauncherExe/target/debug/LauncherExe.exe
Normal file
Binary file not shown.
BIN
LauncherExe/target/debug/LauncherExe.pdb
Normal file
BIN
LauncherExe/target/debug/LauncherExe.pdb
Normal file
Binary file not shown.
5
LauncherExe/target/debug/deps/LauncherExe.d
Normal file
5
LauncherExe/target/debug/deps/LauncherExe.d
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
X:\Java\Launchers\JAML\LauncherExe\target\debug\deps\LauncherExe.exe: src\main.rs
|
||||||
|
|
||||||
|
X:\Java\Launchers\JAML\LauncherExe\target\debug\deps\LauncherExe.d: src\main.rs
|
||||||
|
|
||||||
|
src\main.rs:
|
BIN
LauncherExe/target/debug/deps/LauncherExe.exe
Normal file
BIN
LauncherExe/target/debug/deps/LauncherExe.exe
Normal file
Binary file not shown.
BIN
LauncherExe/target/debug/deps/LauncherExe.pdb
Normal file
BIN
LauncherExe/target/debug/deps/LauncherExe.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user