Posts
4330
Following
313
Followers
444
Software Engineer at Opinsys Oy
Entrepreneur at Siltakatu Solutions Oy

OpenPGP: 3AB05486C7752FE1
@TalesFromTheArmchair Not critique for cargo per se because in order to criticize one show the better way (or actually "show the code") but somehow in the "non-generic case" cargo can be a bitch.

One example is custom targets: there should be really within a project directory a directory where they could be deployed and all the tools would automatically discover them. Then one could just use them by name.

I was so sure that I just don't know how to make that happen but I'd presume that it is not possible reflecting e.g. this tutorial:

https://security.googleblog.com/2024/09/deploying-rust-in-existing-firmware.html

I trust that Google would know the way if that would exist.
1
0
0
@mikko aromipesä never forget
0
1
2
@mikko Ehkä se, jos ei olisi ollut konetta, niin olisi ärsyttänyt. Oon syntynyt vuonna 1980, joten tää oli kyllä ennen nettiaikaa :-) BBS-elämä alkoi kylläkin jo vuonna 1993.
1
0
0
@TalesFromTheArmchair Thanks I honestly do appreciate your comment! Anything is really worth of a shot by now ;-)

As per Windows I learned the basics of how to debug NT kernel and now I should be able to start capture the environment of every cargo process launched:

https://social.kernel.org/notice/AqZds7vXTuTxSm2gds

I.e. build from command-line within the directory where rust-toolchain.toml and Cargo.toml reside but otherwise with same arguments as in build.rs and then do the build.rs build. Finally "subtract the sets".

What you're doing is an interesting idea, I will definitely give it a shot. Also wonder does the position of current_dir() call matter (I had it before arg() calls)....
1
0
0

Jarkko Sakkinen

Pre-order without even reading the sample chapter:

https://nostarch.com/art-arm-assembly-volume-1

I would pay 200 for this one TBH even.

#arm #assembly #nostarch
0
0
2

Jarkko Sakkinen

Attached to NT kernel ;-)

Preparatory steps:

  1. winget install microsoft.windbg
  2. Reboot and disable secure boot.
  3. bcdedit -debug on
  4. Reboot.

#windows #nt #kernel #debug

0
0
1
@mikko Se oli luksusta, kun sai olla yksin kotona. Pienimmästäkin yskästä aloin valittamaan, että nyt ei varmaan ole hyvä lähteä muita tartuttamaan :-)
1
0
2
@mikko Tykkäsin olla kipeänä, koska ei tarvinnut mennä kouluun.
1
0
3

Jarkko Sakkinen

Edited 2 months ago
I just mastered Windows kernel debugging and learned how to dig globally all environment data from EPROCESS globally in the system using WinDbg :-)

It can side-effect free (except slowing down) to intervene process creation of NT kernel. I'll post the script as I test it more.

Victory in debugging after two weeks. Now I have at least proper weapons to nail the build issue in PolkaVM guest programs.

The most important skill to write e.g. Windows drivers for what is worth but also do global system tracing.

I tried all other methods but they all suck in some way.

As much I dislike Windows I have to admit that this brings me weird satisfaction ;-)

https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/

#windows #nt #windbg
0
0
0

Jarkko Sakkinen

No T-shirt - no buy-in

https://shop.joinmastodon.org/
0
0
0
It's also viral advertising at the same time.
0
0
0

Sort of like saying GoogleMaps worked well until we tried to find the Gulf of Mexico?

1
9
0

Jarkko Sakkinen

I'd wish #Codeberg had official #merch too.
1
3
0

World Wide Web Consortium

On International Privacy Day we invite you to check out "Privacy Principles" for the web by @tag

"Privacy is an essential part of the web. This document provides definitions for privacy and related concepts that are applicable worldwide as well as a set of privacy principles that should guide the development of the web as a trustworthy platform."
https://www.w3.org/TR/privacy-principles/

0
3
0
Related:

1.The PR in trouble: https://github.com/paritytech/polkavm/pull/240
2. NINE years old Rust bug: https://github.com/rust-lang/rust/issues/37868

I even went on sending email to Jack who reported the Rust bug, and also is author of this crate: https://docs.rs/duct/latest/duct/.

Well, he did not have off-the-shelf answer but he did say that I should probably remove env_clear(). In Linux actually removing it breaks the build and makes it behave like the Windows build.

I'm a bit pessimistic ATM ;-)
0
0
0

Jarkko Sakkinen

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

Jarkko Sakkinen

Edited 2 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
11
0
Show older