cockmushroom@reddthat.com to Programmer Humor@lemmy.ml · 19 days agoThe things people do to sabotage free softwarelemmy.mlimagemessage-square22fedilinkarrow-up147arrow-down113
arrow-up134arrow-down1imageThe things people do to sabotage free softwarelemmy.mlcockmushroom@reddthat.com to Programmer Humor@lemmy.ml · 19 days agomessage-square22fedilink
minus-squarestingpie@lemmy.worldlinkfedilinkarrow-up4·19 days agoI’m not that well versed in rust, is this literally just wrapping the C library in rust, and calling it a rust implementation of it?
minus-squarefaint_marble_noise@programming.devlinkfedilinkarrow-up1·17 days agoNo, it is not rust implementation if the library (not does it call itself that). It is a rust implementation of one of core utility programs. Here is the code it reimplements, it is similarly short, and hopefully dispels the confusion - https://github.com/coreutils/coreutils/blob/165b62de8083ed9dec9ef4e1699ed44c3c7a2b91/src/logname.c
I’m not that well versed in rust, is this literally just wrapping the C library in rust, and calling it a rust implementation of it?
Yes. Unsafely.
No, it is not rust implementation if the library (not does it call itself that). It is a rust implementation of one of core utility programs. Here is the code it reimplements, it is similarly short, and hopefully dispels the confusion - https://github.com/coreutils/coreutils/blob/165b62de8083ed9dec9ef4e1699ed44c3c7a2b91/src/logname.c