Liphetoho tse ncha tsa li-coreutils le mefuta e meng ea ho fumana lintho tse ngotsoeng hape ho Rust

Ho lokolloa ha uutils coreutils 0.0.18 toolkit e fumaneha, moo ho ntseng ho ntlafatsoa analogue ea sephutheloana sa GNU Coreutils, se ngotsoeng bocha ka puo ea Rust. Coreutils e tla le lisebelisoa tse fetang lekholo, ho kenyelletsa mofuta, katse, chmod, chown, chroot, cp, date, dd, echo, hostname, id, ln, le ls. Sepheo sa morero ke ho theha ts'ebetsong e 'ngoe e fapaneng ea Coreutils, e khonang ho sebetsa ho Windows, Redox le Fuchsia platforms, har'a tse ling. Ho fapana le GNU Coreutils, ts'ebetsong ea Rust e ajoa tlas'a laesense ea tumello ea MIT, sebakeng sa laesense ea GPL copyleft.

Liphetoho tse kholo:

  • Tšebelisano e ntlafalitsoeng le sehlopha sa GNU Coreutils benchmark test suite, se atlehileng litekong tse 340, se hlotsoe liteko tse 210, mme sa tlola liteko tse 50. Phallo ea litšupiso ke GNU Coreutils 9.2.
    Liphetoho tse ncha tsa li-coreutils le mefuta e meng ea ho fumana lintho tse ngotsoeng hape ho Rust
  • Bokhoni bo atolositsoeng, tšebelisano e ntlafalitsoeng le likhetho tse sieo bakeng sa lits'ebeletso cksum, chmod, chroot, comm, cp, cut, date, dd, du, atolosa, env, factor, hashsum, kenya, ln, ls, mktemp, mv, nice, nproc , od, ptx, pwd, rm, shred, sleep, stdbuf, stty, tail, touch, timeout, tr, uname, uniq, utmpx, uptime, wc.
  • Mokhoa oa ho sebelisana (-i) o ntlafalitsoe lits'ebetsong tsa ln, cp le mv.
  • Ts'ebetso e ntlafalitsoeng ea mats'oao ho e, tee le lits'ebeletso tsa nako e felileng.
  • Ho hlalosa terminal, re fetohetse ho sephutheloana sa is_terminal ho fapana le atty.

Ka nako e ts'oanang, sephutheloana sa uutils findutils 0.4.0 se ile sa lokolloa ka ts'ebetsong ho Rust ea lisebelisoa ho tloha ho GNU Findutils set (fumana, fumana, updatedb le xargs). Khatisong e ncha:

  • Tšehetso e ekelitsoeng bakeng sa mosebetsi oa printf o lumellanang le GNU.
  • Sesebelisoa sa xargs se kentsoe tšebetsong.
  • Tšehetso e ekelitsoeng bakeng sa lipolelo tse tloaelehileng, limaske tsa POSIX le "{}" tse ling.
  • Sesebelisoa sa ho fumana se ekelitse tšehetso bakeng sa likhetho "-print0", "-lname", "-ilname", "-empty", "-xdev", "-le", "-P", "—", "- quit”, "-mount", "-inum" le "-links".

Source: opennet.ru

Eketsa ka tlhaloso