Closed Werewolfman77 closed 4 months ago
same for tray app error[E0433]: failed to resolve: could not find windowsinos` no method named encode_wide found for reference &OsStr in the current scope
latest update:
i managed to compile both tray app and daemon using visual studio code with some warnings... .. (i couldn't get it to work on debian...)
once i compile the app is working..when i close the visual studio code and run the exe....the app runs but give content unreachable
also when running daemon exe it gives error
Hello,
Regarding the compilation issue, it might be due to cargo or rustup version used. You could try updating them.
Once compiled, it should be installed via the installer to correctly install the daemon as a Windows Service (it cannot be run directly from the command line) and set the registers. You can find all the steps used for the installation in keysas/keysas-firewall/installer /keysas_firewall_install.iss in sections [Registry] and [Run]. Beware that the USB firewall is still experimental.
Hope this helps.
No feedback, closing.
hopefully i managed to build usbfilter driver (usbfilter.cat, usbfilter.inf, usbfilter.sys ) and minifilter driver (keysasminifilter.cat, keysasminifilter.inf, keysasminifilter.sys)
this is how the output should be...right ?
as for the daemon and tray app i can't seem to be able to build them ...help is appreciated as i am not a developer
i tried "cargo build"after sudo apt-get install mingw-w64
but i get the following :
error[E0433]: failed to resolve: could not find
windowsin
os``_** --> /home/keysas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eventlog-0.2.2/src/lib.rs:7:15windows
inos
note: found an item that was configured out --> /rustc/ef8b9dcf23700f2e2265317611460d3a65c19eff/library/std/src/os/mod.rs:53:9 note: found an item that was configured out --> /rustc/ef8b9dcf23700f2e2265317611460d3a65c19eff/library/std/src/os/mod.rs:100:9
error[E0433]: failed to resolve: could not find
shared
inwinapi
--> /home/keysas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eventlog-0.2.2/src/lib.rs:12:5 | 12 | shared::ntdef::HANDLE, | ^^^^^^ could not findshared
inwinapi
error[E0433]: failed to resolve: could not find
um
inwinapi
--> /home/keysas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eventlog-0.2.2/src/lib.rs:13:5 | 13 | um::{ | ^^ could not findum
inwinapi
registry::Data
,registry::Hive
,registry::Security
--> /home/keysas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eventlog-0.2.2/src/lib.rs:10:16Security
in the rootHive
in the rootData
in the rooterror[E0433]: failed to resolve: could not find
key
inregistry
--> /home/keysas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eventlog-0.2.2/src/lib.rs:32:30 | 32 | RegKey(#[from] registry::key::Error), | ^^^ could not findkey
inregistry
error[E0433]: failed to resolve: could not find
value
inregistry
--> /home/keysas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eventlog-0.2.2/src/lib.rs:35:32 | 35 | RegValue(#[from] registry::value::Error), | ^^^^^ could not findvalue
inregistry
error[E0433]: failed to resolve: could not find
key
inregistry
--> /home/keysas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eventlog-0.2.2/src/lib.rs:67:55 | 67 | pub fn deregister(name: &str) -> Result<(), registry::key::Error> { | ^^^ could not findkey
inregistry
windows
inos
--> /home/keysas/keysas/keysas-firewall/libmailslot/src/lib.rs:37:39windows
inos
note: found an item that was configured out --> /rustc/ef8b9dcf23700f2e2265317611460d3a65c19eff/library/std/src/os/mod.rs:53:9 note: found an item that was configured out --> /rustc/ef8b9dcf23700f2e2265317611460d3a65c19eff/library/std/src/os/mod.rs:100:9
private_in_public
has been removed: replaced with another group of lints, see RFC https://rust-lang.github.io/rfcs/2145-type-privacy.html for more information --> /home/keysas/keysas/keysas-firewall/libmailslot/src/lib.rs:20:11= note:
#[warn(renamed_and_removed_lints)]
on by defaulterror[E0599]: no method named
encode_wide
found for reference&OsStr
in the current scope --> /home/keysas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eventlog-0.2.2/src/lib.rs:48:19 | 48 | OsStr::new(s).encode_wide().chain(once(0)).collect() | ^^^^^^^^^^^ method not found in&OsStr
Some errors have detailed explanations: E0432, E0433, E0599. For more information about an error, try = OsStr::new(name).encode_wide().chain(once(0)).collect();
| ^^^^^^^^^^^ method not found in
rustc --explain E0432
. error: could not compileeventlog
(lib) due to 8 previous errors warning: build failed, waiting for other jobs to finish... error[E0599]: no method namedencode_wide
found for reference&OsStr
in the current scope --> /home/keysas/keysas/keysas-firewall/libmailslot/src/lib.rs:54:48 | 54 | let slot_name: Vec&OsStr
error[E0599]: no method named = OsStr::new(name).encode_wide().chain(once(0)).collect();
| ^^^^^^^^^^^ method not found in
encode_wide
found for reference&OsStr
in the current scope --> /home/keysas/keysas/keysas-firewall/libmailslot/src/lib.rs:200:48 | 200 | let slot_name: Vec&OsStr
Some errors have detailed explanations: E0433, E0599. For more information about an error, try
rustc --explain E0433
. warning:libmailslot
(lib) generated 1 warning error: could not compilelibmailslot
(lib) due to 3 previous errors; 1 warning emitted