Skip to content

Compilation and working problems for the Windows version #5

Description

@ab5fr

rustc --version
rustc 1.88.0 (6b00bc388 2025-06-23)

i looked it up and tried to use the nightly version but for some reason the nightly version doesnt have cargo or something help pls thx appreciated

PS C:\Users\ab5\codes\DarkClient> cargo build --release
Compiling egui_glow v0.29.1
Compiling egui-winit v0.29.1
Compiling dll-syringe v0.15.2
Compiling agent_loader v0.1.0 (C:\Users\ab5\codes\DarkClient\agent_loader)
Compiling client v0.1.0 (C:\Users\ab5\codes\DarkClient\client)
error[E0554]: #![feature] may not be used on the stable release channel
--> C:\Users\ab5.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\dll-syringe-0.15.2\src\lib.rs:2:1
|
2 | #![feature(maybe_uninit_uninit_array, maybe_uninit_slice, linked_list_cursors)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel
--> C:\Users\ab5.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\dll-syringe-0.15.2\src\lib.rs:3:34
|
3 | #![cfg_attr(feature = "syringe", feature(once_cell_try))]
| ^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel
--> C:\Users\ab5.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\dll-syringe-0.15.2\src\lib.rs:4:35
|
4 | #![cfg_attr(feature = "rpc-core", feature(min_specialization))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0635]: unknown feature maybe_uninit_uninit_array
--> C:\Users\ab5.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\dll-syringe-0.15.2\src\lib.rs:2:12
|
2 | #![feature(maybe_uninit_uninit_array, maybe_uninit_slice, linked_list_cursors)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^

Compiling eframe v0.29.1
warning: method client is never used
--> client\src\mapping\mod.rs:18:8
|
17 | pub trait GameContext {
| ----------- method in this trait
18 | fn client(&self) -> &'static DarkClient {
| ^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: methods get_static_field and get_string are never used
--> client\src\mapping\mod.rs:138:12
|
71 | impl Mapping {
| ------------ methods in this implementation
...
138 | pub fn get_static_field(
| ^^^^^^^^^^^^^^^^
...
192 | pub fn get_string(&self, obj: JObject) -> String {
| ^^^^^^^^^^

warning: methods get_method and get_method_by_signature are never used
--> client\src\mapping\class.rs:88:12
|
87 | impl MinecraftClass {
| ------------------- methods in this implementation
88 | pub fn get_method(&self, name: &str) -> &Method {
| ^^^^^^^^^^
...
102 | pub fn get_method_by_signature(&self, name: &str, signature: &str) -> &Method {
| ^^^^^^^^^^^^^^^^^^^^^^^

warning: field world is never read
--> client\src\mapping\client\minecraft.rs:15:9
|
11 | pub struct Minecraft {
| --------- field in this struct
...
15 | pub world: World,
| ^^^^^
|
= note: Minecraft has a derived impl for the trait Debug, but this is intentionally ignored during dead code analysis

warning: methods set_invulnerable, get_fall_distance, reset_fall_distance, and get_name are never used
--> client\src\mapping\entity\mod.rs:55:12
|
19 | impl Entity {
| ----------- methods in this implementation
...
55 | pub fn set_invulnerable(&self, value: bool) {
| ^^^^^^^^^^^^^^^^
...
66 | pub fn get_fall_distance(&self) -> f64 {
| ^^^^^^^^^^^^^^^^^
...
80 | pub fn reset_fall_distance(&self) {
| ^^^^^^^^^^^^^^^^^^^
...
94 | pub fn get_name(&self) -> String {
| ^^^^^^^^

warning: method get_may_fly is never used
--> client\src\mapping\entity\player.rs:79:12
|
46 | impl Abilities {
| -------------- method in this implementation
...
79 | pub fn get_may_fly(&self) -> bool {
| ^^^^^^^^^^^

warning: variants COMBAT, RENDER, PLAYER, WORLD, and MISC are never constructed
--> client\src\module\mod.rs:10:5
|
9 | pub enum ModuleCategory {
| -------------- variants in this enum
10 | COMBAT,
| ^^^^^^
11 | MOVEMENT,
12 | RENDER,
| ^^^^^^
13 | PLAYER,
| ^^^^^^
14 | WORLD,
| ^^^^^
15 | MISC,
| ^^^^
|
= note: ModuleCategory has derived impls for the traits Clone and Debug, but these are intentionally ignored during dead code analysis

warning: method display_name is never used
--> client\src\module\mod.rs:19:12
|
18 | impl ModuleCategory {
| ------------------- method in this implementation
19 | pub fn display_name(&self) -> &str {
| ^^^^^^^^^^^^

warning: fields description and category are never read
--> client\src\module\mod.rs:34:9
|
32 | pub struct ModuleData {
| ---------- fields in this struct
33 | pub name: String,
34 | pub description: String,
| ^^^^^^^^^^^
35 | pub category: ModuleCategory,
| ^^^^^^^^
|
= note: ModuleData has derived impls for the traits Clone and Debug, but these are intentionally ignored during dead code analysis

warning: enum ModuleSetting is never used
--> client\src\module\mod.rs:42:10
|
42 | pub enum ModuleSetting {
| ^^^^^^^^^^^^^
|
= note: ModuleSetting has derived impls for the traits Clone and Debug, but these are intentionally ignored during dead code analysis

error[E0599]: no function or associated item named uninit_array found for union MaybeUninit in the current scope
--> C:\Users\ab5.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\dll-syringe-0.15.2\src\syringe.rs:366:41
|
366 | let mut path_buf = MaybeUninit::uninit_array::<MAX_PATH>();
| ^^^^^^^^^^^^ function or associated item not found in MaybeUninit<_>
|
note: if you're trying to build a new MaybeUninit<_> consider using one of the following associated functions:
MaybeUninit::::new
MaybeUninit::::uninit
MaybeUninit::::zeroed
--> C:\Users\ab5.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\mem\maybe_uninit.rs:307:5
|
307 | pub const fn new(val: T) -> MaybeUninit {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
330 | pub const fn uninit() -> MaybeUninit {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
380 | pub const fn zeroed() -> MaybeUninit {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: there is an associated function uninit with a similar name
|
366 - let mut path_buf = MaybeUninit::uninit_array::<MAX_PATH>();
366 + let mut path_buf = MaybeUninit::uninit::<MAX_PATH>();
|

error[E0599]: no function or associated item named uninit_array found for union MaybeUninit in the current scope
--> C:\Users\ab5.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\dll-syringe-0.15.2\src\utils\array_buf.rs:16:32
|
16 | data: MaybeUninit::uninit_array(),
| ^^^^^^^^^^^^ function or associated item not found in MaybeUninit<_>
|
note: if you're trying to build a new MaybeUninit<_> consider using one of the following associated functions:
MaybeUninit::::new
MaybeUninit::::uninit
MaybeUninit::::zeroed
--> C:\Users\ab5.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\mem\maybe_uninit.rs:307:5
|
307 | pub const fn new(val: T) -> MaybeUninit {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
330 | pub const fn uninit() -> MaybeUninit {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
380 | pub const fn zeroed() -> MaybeUninit {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: there is an associated function uninit with a similar name
|
16 - data: MaybeUninit::uninit_array(),
16 + data: MaybeUninit::uninit(),
|

error[E0599]: no function or associated item named uninit_array found for union MaybeUninit in the current scope
--> C:\Users\ab5.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\dll-syringe-0.15.2\src\utils\array_or_vec.rs:31:52
|
31 | Self::from_partial_init_array(MaybeUninit::uninit_array(), 0)
| ^^^^^^^^^^^^ function or associated item not found in MaybeUninit<_>
|
note: if you're trying to build a new MaybeUninit<_> consider using one of the following associated functions:
MaybeUninit::::new
MaybeUninit::::uninit
MaybeUninit::::zeroed
--> C:\Users\ab5.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\mem\maybe_uninit.rs:307:5
|
307 | pub const fn new(val: T) -> MaybeUninit {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
330 | pub const fn uninit() -> MaybeUninit {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
380 | pub const fn zeroed() -> MaybeUninit {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: there is an associated function uninit with a similar name
|
31 - Self::from_partial_init_array(MaybeUninit::uninit_array(), 0)
31 + Self::from_partial_init_array(MaybeUninit::uninit(), 0)
|

Some errors have detailed explanations: E0554, E0599, E0635.
For more information about an error, try rustc --explain E0554.
error: could not compile dll-syringe (lib) due to 7 previous errors; 26 warnings emitted
warning: build failed, waiting for other jobs to finish...
error: linking with link.exe failed: exit code: 1120
|
= note: "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\HostX64\x64\link.exe" "/DEF:C:\Users\ab5\AppData\Local\Temp\rustcUb0wGj\lib.def" "/NOLOGO" "C:\Users\ab5\AppData\Local\Temp\rustcUb0wGj\symbols.o" "<1 object files omitted>" "C:\Users\ab5\AppData\Local\Temp\rustcUb0wGj/{libstd-c85e9beb7923f636.rlib}.rlib" "\lib\rustlib\x86_64-pc-windows-msvc\lib/{libcompiler_builtins-*}.rlib" "C:\Users\ab5\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows_x86_64_msvc-0.52.6\lib\windows.0.52.0.lib" "advapi32.lib" "cfgmgr32.lib" "credui.lib" "dbghelp.lib" "gdi32.lib" "iphlpapi.lib" "kernel32.lib" "msimg32.lib" "netapi32.lib" "ole32.lib" "oleaut32.lib" "opengl32.lib" "pdh.lib" "powrprof.lib" "psapi.lib" "secur32.lib" "shell32.lib" "shlwapi.lib" "synchronization.lib" "user32.lib" "winspool.lib" "ws2_32.lib" "legacy_stdio_definitions.lib" "kernel32.lib" "C:\Users\ab5\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows_x86_64_msvc-0.52.6\lib\windows.0.52.0.lib" "kernel32.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/LIBPATH:C:\Users\ab5\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows_x86_64_msvc-0.52.6\lib" "/OUT:C:\Users\ab5\codes\DarkClient\target\release\deps\agent_loader.dll" "/OPT:REF,ICF" "/DLL" "/IMPLIB:C:\Users\ab5\codes\DarkClient\target\release\deps\agent_loader.dll.lib" "/DEBUG" "/PDBALTPATH:%_PDB%" "/NATVIS:\lib\rustlib\etc\intrinsic.natvis" "/NATVIS:\lib\rustlib\etc\liballoc.natvis" "/NATVIS:\lib\rustlib\etc\libcore.natvis" "/NATVIS:\lib\rustlib\etc\libstd.natvis"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: Creating library C:\Users\ab5\codes\DarkClient\target\release\deps\agent_loader.dll.lib and object C:\Users\ab5\codes\DarkClient\target\release\deps\agent_loader.dll.exp␍
agent_loader.agent_loader.f7f1c18cc21e10f2-cgu.0.rcgu.o : error LNK2019: unresolved external symbol JNI_GetCreatedJavaVMs referenced in function agent_onload␍
C:\Users\ab5\codes\DarkClient\target\release\deps\agent_loader.dll : fatal error LNK1120: 1 unresolved externals␍

error: could not compile agent_loader (lib) due to 1 previous error
error: linking with link.exe failed: exit code: 1120
|
= note: "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\HostX64\x64\link.exe" "/DEF:C:\Users\ab5\AppData\Local\Temp\rustc71esbm\lib.def" "/NOLOGO" "C:\Users\ab5\AppData\Local\Temp\rustc71esbm\symbols.o" "<1 object files omitted>" "C:\Users\ab5\AppData\Local\Temp\rustc71esbm/{libstd-c85e9beb7923f636.rlib}.rlib" "\lib\rustlib\x86_64-pc-windows-msvc\lib/{libcompiler_builtins-*}.rlib" "kernel32.lib" "C:\Users\ab5\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows_x86_64_msvc-0.52.6\lib\windows.0.52.0.lib" "kernel32.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/LIBPATH:C:\Users\ab5\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows_x86_64_msvc-0.42.2\lib" "/LIBPATH:C:\Users\ab5\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows_x86_64_msvc-0.52.6\lib" "/OUT:C:\Users\ab5\codes\DarkClient\target\release\deps\client.dll" "/OPT:REF,ICF" "/DLL" "/IMPLIB:C:\Users\ab5\codes\DarkClient\target\release\deps\client.dll.lib" "/DEBUG" "/PDBALTPATH:%_PDB%" "/NATVIS:\lib\rustlib\etc\intrinsic.natvis" "/NATVIS:\lib\rustlib\etc\liballoc.natvis" "/NATVIS:\lib\rustlib\etc\libcore.natvis" "/NATVIS:\lib\rustlib\etc\libstd.natvis"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: Creating library C:\Users\ab5\codes\DarkClient\target\release\deps\client.dll.lib and object C:\Users\ab5\codes\DarkClient\target\release\deps\client.dll.exp␍
client.client.7056d83b0eab6a58-cgu.0.rcgu.o : error LNK2019: unresolved external symbol JNI_GetCreatedJavaVMs referenced in function ZN3std4sync6poison4once4Once15call_once_force28$u7b$$u7b$closure$u7d$$u7d$17h4429896e742592c7E␍
C:\Users\ab5\codes\DarkClient\target\release\deps\client.dll : fatal error LNK1120: 1 unresolved externals␍

warning: client (lib) generated 10 warnings
error: could not compile client (lib) due to 1 previous error; 10 warnings emitted

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions