Posts
5054
Following
330
Followers
507
Linux kernel hacker and maintainer etc.

OpenPGP: 3AB05486C7752FE1
Any known examples in open source products doing the following pattern with Rust:

1. You have a Rust crate that you compile to you compile as usual host-to-host.
2. You have a build.rs that spawns cargo to a directory with rust-toolchain.xml defining nightly target.
3. You pass options (e.g. --target) for cargo to compile for a different target than the host.

Obviously Command is used to create the process together with current_directory() to change the directory to the one with Cargo.toml and rust-toolchain.xml. It is not a sub-crate per se topologically but a disjoint crate.

In Linux and macOS this can be made to work. With Windows cargo is acting like --target etc. options did not exist at all and ignores rust-toolchain.xml.

Any ideas how to make this type of pattern work?

#rust #rustlang #cargo #windows #riscv
2
0
0
Edited 11 months ago
Maybe I'm a fool but personally I think that this thing called "integrity" is at the core of open source. Do as you say. LITERALLY.
0
0
0

Stock market chaos as China reveals secret snake oil refinery, threatening US snake oil monopoly.

4
12
0
I've heard that eBPF is coming for Windows but given how sensitive the whole card house is I stick with this working approach at least next five years forward ;-)
0
0
1
In sadomasochistic way, hacking Win32 is fun torture from time to time...
1
0
0
Lessons learned from capturing Windows environment variables of launched processed with Python.

1. WMI: it's difficult path for short living processes. I could not make this work. Either I run into privilege issues or I have a racy monitoring.
2. sysmon: This is the way to go. Period ;-)

I will never try WMI again, that's for sure. And luckily Windows build issues are not every day thing...

[1] https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon
[2] https://pypi.org/project/pywin32/

#windows #wmi #sysmon #win32 #cargo #rust
1
0
3
Edited 11 months ago
@fosdem_countdown @igb Also: even Netflix is essentially closed source platform. Yes, there are open source tools but I cannot download the full source code of Netflix. So please stop bitching. You are developing a proprietary product.
1
0
0
Edited 11 months ago
@fosdem_countdown @igb And most of the visitors are from multi-billion companies such as... Netflix :D What a hypocrisy. Send the middlemen, right? I don't even know that much about the guy but this type of corrupted moral and ethics make me sick.

Personally, I'd let both Mozilla's CEO and Jack to speak but perhaps the audience at FOSDEM is easily brainwashed, right? I could not know because personally I don't pay attention keynotes in the first place.

It's a double standard by definition.
1
0
0
@igb now there are "on the right side" people left like mozilla's ceo ;--------) good job
1
0
0
@igb idiocracy won this time and jack was canceled
1
0
0
Karma is a bitch...
0
0
2
600 billion dollars melted from NVIDIA's value.
1
0
3

i cant believe ChatGPT lost its job to AI

4
20
5
Edited 11 months ago
🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 🍿 #deepseek
0
0
1
Edited 11 months ago
0
0
0
Windows ISO is needed only one shot that fixes up the EFI boot.
0
0
0
For the record: you can BTW make that image a server image by exporting it from docker, converting to qcow2, bootstrap booting it with windows ISO.
1
0
1
*tsih* 🤣
1
1
2
Show older