P0: blocks the move or the first release
An appendix to the milestone.
-
The manifest cannot stand alone. Finding:
Cargo.tomlhas nodescription,repository,readme,keywords,categoriesorrust-version. Its description is a comment, not a field.license.workspace = trueandlints.workspace = trueinherit a workspace that will not exist after the move. Thepublish = falseline's comment points atcrates/publish-allowlist.txt, a file of this repository.standalone.pylists all of these and exits "does not stand alone yet". Evidence:crates/universal_serial_bus/Cargo.tomllines 1 to 15. Change: at the move, setlicense = "MIT OR Apache-2.0". Setrust-versionat the value themsrvjob confirms (1.88 or higher, sincechangesuses let chains; unverified). Add a one-sentencedescription("The host side of a USB boot keyboard: descriptors, setup packets and reports, parsed to refuse"). Addkeywords = ["usb", "hid", "keyboard", "no-std", "kani"],categories = ["no-std", "hardware-support", "parser-implementations"]andreadme = "README.md". Copy the lint table in. Keep thepublishline, with one sentence a stranger can act on until the release that publishes. Door: the metadata is two-way; the publication is one-way and already held by the standing publishing hold. Effort: S. -
The crate contradicts its own published name, and the promised alias is missing. Finding: the release ruling publishes the crate as
universal_serial_bus, and the xHCI review package says the crate "carries#[doc(alias = "usb")]so a search forusbstill finds it". The crate carries no such alias, and itsName:block argues for the opposite name ("usband notuniversal_serial_busby DECISIONS §154"). Both readings are right about different things. §154 governsusbas a word inside names (usb_keyboard_driver), and crates.io forces the published crate name. The package's claim about the alias is false today. Evidence:crates/universal_serial_bus/src/lib.rslines 32 to 34; the package's "Companion crate" paragraph;standalone.py's three findings onsrc/lib.rslines 32 and 33 (a milestone citation, a provenance block and a section citation). Change: at the move, rename the package and the directory touniversal_serial_bus. Add#[doc(alias = "usb")]at the crate root. Delete theName:block (the move commit strips provenance blocks). Rewrite the first sentence of the crate documentation so a crates.io reader learns in one line why the name is long. In nife, the dependency line becomesusb = { package = "universal_serial_bus", git = ..., rev = ... }or the driver'suselines change; the former keeps the driver's diff to one line. Door: the published name is one-way and already ruled; the alias and the dependency form are two-way. Effort: S. -
The template's naming gates fail on 30 names, 9 of them public. Finding:
spelled_out.pyrefusesmaxinmax_packet(two fields),max_packet0,control_max_packetand its parameterb_max_packet0. It also refusesconfigas the parameter offind_boot_keyboard.register_names.pyrefusesDEVICE_LEN,CONFIGURATION_LEN,INTERFACE_LEN,ENDPOINT_LENandREPORT_LEN(a length carries its unit). It refusestotal_lengthandSetupPacket::length(the same, unless the item says it mirrors the specification). It also refusesERROR_ROLL_OVER(its doc comment names the source spelling, so it carries#[doc(alias = "ErrorRollOver")]). The rest are locals and test names. Thecheck / standalonejob runs these at a ceiling of 0, so the new repository is red on its first push. Evidence:crates/universal_serial_bus/src/descriptor.rslines 20 to 27, 63, 76, 111, 124, 159, 195, 234, 238, 260;crates/universal_serial_bus/src/boot_keyboard.rslines 34 and 38;crates/universal_serial_bus/src/request.rslines 38 and 124. Change: the public renames are Decision 1's table, decided provisionally. Rename localsconfigtoconfigurationandmax_packettomaximum_packet_bytes. Rename the testthe_class_requests_address_the_interfacetothe_class_requests_are_sent_to_the_interface(the gate reads a leadingaddressas a verb). Rename the bindingaddressin the walk toendpoint_number_and_direction, the spelling the xHCI package ratified for the same byte. The caller changes with the public names:usb_keyboard_driver.rsreadskeyboard.max_packet,descriptor::DEVICE_LEN,descriptor::CONFIGURATION_LEN,REPORT_LENandcontrol_max_packet. Door: two-way before the first release. Effort: M, counting the caller.