You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.
I think the fact that groups uses a different type for VxWorks seems like a possible issue with the API. I understand that for backwards compatibility reasons gid uses a different type for VxWorks (albeit it may be worth fixing it anyway, see https://rust-lang.github.io/rfcs/1415-trim-std-os.html), but I see no reason to continue with this mistake for a nightly method.
I think this looks completely ready to ship, other than using the wrong type on VxWorks. If someone would like to fix the type on VxWorks, I'd be happy to start an FCP for stabilization.
We talked about this in today's @rust-lang/libs meeting.
gid using a (private) type alias is unfortunate, and doubly so because rustdoc doesn't show that.
However, we don't want to be inconsistent here, and it's not obvious if u32 is the thing we want to be moving towards. There are two possible APIs we could move towards (via edition migrations): u32 everywhere, or dedicated Gid/Uid/etc opaque types that would avoid accidentally mixing up arguments. Personally, I'd favor the latter; it's much less error-prone.
Given that, let's go ahead and ship this using the internal GroupId alias.
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.
Activity
Rollup merge of rust-lang#90748 - cuviper:track-setgroups, r=dtolnay
Rollup merge of rust-lang#90748 - cuviper:track-setgroups, r=dtolnay
sugar700 commentedon Jan 2, 2022
I think the fact that
groupsuses a different type for VxWorks seems like a possible issue with the API. I understand that for backwards compatibility reasonsgiduses a different type for VxWorks (albeit it may be worth fixing it anyway, see https://rust-lang.github.io/rfcs/1415-trim-std-os.html), but I see no reason to continue with this mistake for a nightly method.liff commentedon Sep 27, 2023
Is there a chance this will end up being stabilized, or is the type of the group ID a blocker here?
Jisu-Woniu commentedon Mar 23, 2024
Any update on this? It's been half a year with no updates.
joshtriplett commentedon Nov 23, 2026
I think this looks completely ready to ship, other than using the wrong type on VxWorks. If someone would like to fix the type on VxWorks, I'd be happy to start an FCP for stabilization.
joshtriplett commentedon Nov 23, 2026
Nominated to get team confirmation on readiness.
[-]Tracking Issue for `CommandExt::groups`[/-][+]Tracking Issue for `unix` `CommandExt::groups`[/+]joshtriplett commentedon Nov 24, 2026
We talked about this in today's @rust-lang/libs meeting.
gidusing a (private) type alias is unfortunate, and doubly so because rustdoc doesn't show that.However, we don't want to be inconsistent here, and it's not obvious if
u32is the thing we want to be moving towards. There are two possible APIs we could move towards (via edition migrations):u32everywhere, or dedicatedGid/Uid/etc opaque types that would avoid accidentally mixing up arguments. Personally, I'd favor the latter; it's much less error-prone.Given that, let's go ahead and ship this using the internal
GroupIdalias.