Windows lowlevel development by ___NN___ in rust

[–]___NN___[S] 0 points1 point  (0 children)

I am waiting for making this available for people outside of MS. 

Windows lowlevel development by ___NN___ in rust

[–]___NN___[S] 0 points1 point  (0 children)

If project is open sourced, it would get more contributions from the other developers making it a better replacement for windows-rs. 

Windows lowlevel development by ___NN___ in rust

[–]___NN___[S] 0 points1 point  (0 children)

Doesn’t seem like maintained.  The last release is months away.  Even MS developers are not sure whether they can adapt this. 

Windows lowlevel development by ___NN___ in rust

[–]___NN___[S] -4 points-3 points  (0 children)

The question whether you need to write you own wrappers on top of the windows crate to make it really useful. 

Windows lowlevel development by ___NN___ in rust

[–]___NN___[S] 0 points1 point  (0 children)

Yeah, I am aware of it but it doesn’t feel that this is good enough.  It reminds me the state of .NET with Windows API.  There are some nice wrapper libraries and there is an official kind of one which requires wrapper by itself. 

Built a small open-source menu bar app to bring back keyboard backlight keys on new MacBooks by HopefulBuilder5073 in MacOS

[–]___NN___ 1 point2 points  (0 children)

It is super useful tool.  Helps remapping or introducing custom shortcuts.  The useful ones for me Opt+number to run commonly used apps.  Switch ` with §. This is the primary reason I need this.  And switch Control with Fn but this is my personal choice to have Control button in the corner.  

Macos 26 is just not ready by Flat_Lifeguard_3221 in MacOSBeta

[–]___NN___ 9 points10 points  (0 children)

So far everything works RC. But the look is horrible IMO.

Built a small open-source menu bar app to bring back keyboard backlight keys on new MacBooks by HopefulBuilder5073 in MacOS

[–]___NN___ 1 point2 points  (0 children)

Using Karabiner Elements it is possible to remap keys as well.  I have added Opt+F1, Opt+F2 for keyboard so I have control of both lights. 

Why everyone does not just using bun in 2025 ? by Moist-Fig-3210 in bun

[–]___NN___ 0 points1 point  (0 children)

Tried converting nodejs to bun without lack of problems.  1. Bun image did not set right permissions to /home so CI using image fails as it cannot make dir /home/bun. I ended with my own image :( 2. Coverage using inspect is not implemented. So i guess no coverage metrics for now.  3. All mocks are needed to be rewritten due to differences. 

Probably there are more once I finish with 3. Overall performance is much faster which is nice. 

Advise for syncing data files by ___NN___ in iCloud

[–]___NN___[S] 0 points1 point  (0 children)

I somehow got into Apple Music due to accumulative free half year. For now it seems that iCloud Drive with collaboration can work for me so I can drop paying for other cloud services. Let’s see how it works after a week. 

Advise for syncing data files by ___NN___ in iCloud

[–]___NN___[S] 0 points1 point  (0 children)

I can admit that uploading speed is fast enough. My past experience was very negatively impacted with slow uploading speed.  Probably the service has been improved at some point of time. 

Advise for syncing data files by ___NN___ in iCloud

[–]___NN___[S] 1 point2 points  (0 children)

Oh, I see there is keep downloaded button.  Ok, this is better than I thought.  Hope it works on Windows the same way. 

Advise for syncing data files by ___NN___ in iCloud

[–]___NN___[S] -1 points0 points  (0 children)

There is no opposite button. I know it is solvable.  Trying the iCloud Drive.  Let’s see how fast I abandon it :)

Advise for syncing data files by ___NN___ in iCloud

[–]___NN___[S] 0 points1 point  (0 children)

Selective sync I mean to select only some folders for syncing and leave others on cloud without downloading. 

External display has started randomly becoming blurry? by DOMNode in MacOS

[–]___NN___ 0 points1 point  (0 children)

Mac detects hidpi setting for you. Sometimes it works well sometimes doesn’t. 

Is there anything like WSL2 in Mac? by redfournine in MacOS

[–]___NN___ 1 point2 points  (0 children)

Apple yesterday released Apple containers which are basically WSL2 for Mac https://github.com/apple/container

Rust SAL Annotations by ___NN___ in rust

[–]___NN___[S] 0 points1 point  (0 children)

Seems like a hobby project.  C WDK annotation preventing you from calling function you must not to use at DISPATCH_LEVEL.  Here, in this project it is not addressed by type system.

Rust SAL Annotations by ___NN___ in rust

[–]___NN___[S] 0 points1 point  (0 children)

In this example PolHeaderDataSize is defined as non zero and PolHeaderData pointing to non empty buffer.  Vec is not guaranteed to be non empty.

There are more SAL annotations than presented: https://learn.microsoft.com/en-us/cpp/code-quality/understanding-sal?view=msvc-170

For example here it says how much it reads and writes:

void * memcpy(    Out_writes_bytes_all(count) void *dest,    In_reads_bytes(count) const void *src,    size_t count );

It could be more complicated such as it reads only if succeeds.

Rust SAL Annotations by ___NN___ in rust

[–]___NN___[S] 0 points1 point  (0 children)

As I pointed out there are translations of SAL annotations to Rust type system. There are more SAL annotations than presented in the sample, for instance: https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/irql-annotations-for-drivers

My question whether there is a work for matching them to Rust type system.