ww_base features and roadmap¶
This file is the single source of truth for what the ww_base crates support, what is being worked on and what is planned, for humans and AI agents alike.
How to use this file¶
- Status of each item:
- β done
- π§ in progress or partially done (the note says what is missing)
- π planned
- π‘ idea, not committed to
- β blocked (the note says on what)
- π probably done or obsolete, needs a check before closing
- π§ͺ done and tested on the host, the check on hardware is still open (the note says what to check)
- π known bug, not yet fixed (the note says how to hit it)
- Target is the release an item is planned for (
v0.5is WireWeaver's next release, which these items were planned with). No tag means not scheduled. - IDs (
STD-3,EVO-16,TR-31) are stable: never renumber or reuse one. New items take the next free number of their area. Use the ID in commit messages, CHANGELOG entries and codeTODOs (// TODO(STD-74): ...). When talking to people, name an ID with a short slug from its title (STD-3 ww-si-and-numeric), never bare. - The items came from WireWeaver's
FEATURES.mdwith their IDs, where these crates were developed. The areas are WireWeaver's: an item here is one whose code lives in this repository's crates. IDs not listed here (SW,DER,API,SRV,CLT,INT,TEST, ...) and paths outside this repository's crates (tests/quantities,tests/conformance,wire_weaver_client,docs/api/..) are wire_weaver's, or shrink_wrap's and exact_units's where they name those crates. The walker, model and client sides of these types stay with WireWeaver. - Items are grouped by area. Each area lists what works first (β ), then open items ordered by target.
- When finishing work, update the item in the same change: mark it β , move it up to the done items of its area and add a pointer (docs page, crate, test or example). Don't delete done items. Move items that turn out to be obsolete to a "Dropped and superseded" section with a one-line reason.
- New ideas go into the matching area as π‘. Small code-level gaps stay as
TODOcomments in the source; only those that limit users or block a feature get an item here.
Base types and quantities (ww_si, ww_numeric, ww_version, ww_date_time, ww_error, STD)¶
- β
STD-2
ww_version. - β
STD-3
ww_siandww_numeric. - β
STD-4
ww_date_time. - β
STD-16 Common errors Β·
v0.5βww_error::CommonError(Unsupported,InvalidArgument,InUse,Busy,WrongState,NoPower,Refused,Timeout,Fault, bounded strings), re-exported asww_api::prelude::CommonError, is an error every item of every API can return, beside the API's own error enum and without a variant in it: the protocol carries it asww_client_server::ErrorKind::Common(wirew2.0), a handler returnsResult<T, wire_weaver::Error<'_, E>>(CommonorApi,?takes both throughapi_error!) orResult<T, CommonError>for an item without an error type, the client getsCallError::CommonorError::common(),#[errors(..)]lists them asCommonError(Busy, InUse)on any item. Tools read the event, no crate name is matched: PythonRemoteError.common,wwprints its text,CommonError::DOCSgives names and doc lines. Everyww_stdlibAPI crate uses it;ww_counters,ww_log,ww_timebaseandww_uartlost their error enums, which held nothing else. The server side is SRV-63.docs/ww_error.md,docs/api/errors.md#common-errors,tests/common_error,wire_weaver_pytest_errors.py. - β
STD-23
ww_si/ww_numericextended Β·v0.5β quantity groups and host helpers as cargo features,Secondas a device timestamp (wrap rule, hostUnwrapper), constructors, conversions and comparisons across prefixes and storage,UVlq32/UVlq64storage,Baudfor baud rates (STD-13),Ratio,TorqueandTimed<T>(EX-11).docs/ww_si.md,docs/ww_numeric.md. Zero-overhead typed quantities (Volt<u16, Milli>) are not part of it. - β
STD-38
ww_si0.2: one genericQuantity<U: Unit>Β·v0.5β every quantity isQuantity<U> { prefix, value, PhantomData<U> }with a zero-size marker per unit inww_si::unitsand the 0.1 names as aliases (KiloGramβGram);Dim,Scale,UnitExpr,Unit(own markers in API crates),Per/Times; constructors,quantize, conversions (to_si_f64through each unit's scale),with_prefix,same_repr, comparisons,Display/Debug/defmtwritten once; unit algebra checked by the compiler against a product table verified at compile time;units::by_name. Same bytes on the wire as 0.1.docs/ww_si.md,ww_si/tests; the 0.2.0 snapshot holdsQuantity, every marker andPer/Times, so devices leave them out of their introspection data. Other crates' call sites moved to the new constructors; the motor demo's own helpers (units.rs) andLoadunits are the follow-up piece;BaseUnitis replaced by STD-37 (run-time units). - β
STD-37
ww_siunits known only at run time Β·v0.5βSIExpr<'i>{Named { name, symbol, dim, scale },Mul,Div,Pow} (recursive throughRefBox, API-44) andAnyQuantity<'i> { prefix, value, unit }: the marker model on the wire,Dimas seven 4-bit exponents (sized),Scaletoo. A marker'sUnitExprmaps one to one onto anSIExpr(Unit::SI_EXPR,SIExpr::of,SIExprOwned::from; back==andknown()), shown, named and converted to SI by the same code as typed units, walks bounded byMAX_UNIT_DEPTH.ww_adc::ChannelInfo::unitis one;BaseUnit,SIExp,INib8P3are removed.docs/ww_si.md#units-known-only-at-run-time(byte layouts),ww_si/tests/dynamic.rs,tests/io_adc. Dynamic clients,wwand Python show anAnyQuantitylike the typed quantity of its unit (CLT-31'sDynQuantity, both rendered by the publicww_si::treewalk), a device's own unit with its dimension and scale; writes take any quantity whose unit has a dimension.tests/quantities(anAnyQuantityproperty through the in-process transport),wire_weaver_py/tests. - β
STD-43
ww_siwithout wide integers on small targets Β·v0.5β comparisons,with_prefix, the exact arithmetic and the integer conversions of quantities work onww_numeric::Integer(sign and a magnitude as wide as the widest enabled number type): with types up to 32 bits onlyu32code, noi64/i128and nof64without float types.to_i32_in/to_u32_in/to_u32_wrapping_in;to_i128_inonly with 64- or 128-bit types. 6 KiB less flash on Portwright (thumbv6m,opt-level = "z").docs/ww_si.md#conversions-and-comparisons,ww_si/tests/narrow.rsandww_numeric/tests/integer.rs(run with 32-bit types only too). STD-102 replaced these methods withto_in/rescaled/rescaled_exacton exact_units' kernel. - β
STD-102
ww_sion exact_units' integer kernel Β·v0.5β conversions, comparisons and bounds ofQuantityrun on exact_units' NUM-13 kernel (PrefixRatio,Prefix::rescale/cmp_scaled) at the width of the enabled number types, for every scale (SI, binary,Pow10,Pow2,FullScale); thei128/f64slow paths (ops.rs) are gone. One conversion names its policy:to_in::<T>(prefix, Rounding, Overflow)replacesto_u32_in,to_i32_in,to_u32_wrapping_inandto_i128_in;rescaled(prefix, Rounding, Overflow)andrescaled_exact(prefix)replacewith_prefix. No float code on a device without thef32feature (a float target is a compile error there),f64on hosts only; no wire change (corpus unchanged, 8 new bounded-quantity cases). Results are those of the old arithmetic (ww_si/tests/oracle.rs, proptests against it). QEMU M3 (qemu-si-convert,fw-z/fw-3instructions, before β after, exact_units at 1819d9f): KiBβB 6145/6508 β 596/299, FullScaleβmV 7346/7553 β 921/582,to_fixed4340/4548 β 100/81, same prefix 99/44 β 70/34, mVβV 154/71 β 139/96, msβΒ΅s 153/90 β 140/98, Β΅s < ms 184/112 β 176/119, bounded decode 413/325 β 464/316,steps342/71 β 293/100. Flash of the bench 34.1 β 18.1 KB (fw-z), 47.8 β 27.6 KB (fw-3). Portwright.text305,256 β 290,664 B, rePort 402,548 β 392,812 B (measured at exact_units 15cd9f5). TEST-33 is a gate now.docs/ww_si.md#conversions-and-comparisons. - β
STD-107
AnyQuantityby reference Β·v0.5β the run-time side of exact_units UNIT-7 (piece 4): anAnyQuantitycarries a compactedSIExpr, aRefbyMarkerIdfor each unit aUnitTablelists (the API's model) and aDefotherwise;From<Quantity<U>>givesDefs, so a value reads alone anywhere.to_si_f64,displayandAnyQuantityOwned::to_fixedtake the table,to_quantity::<U>()resolves throughU's own definition,compact_in(no_std, an arena) andAnyQuantityOwned::compact/resolve;Displayreads throughunits::TABLE.Voltby reference is 17 bytes of unit instead of 31. ww_si re-exportsUnitTable,UnitDef,MarkerId,CompactError. A tape (ww_tape) with anAnyQuantityof an API's ownRpmdecodes from the bundle stored in it (tests/quantitiestape_decodes_a_reference_from_its_bundle). Docs. - β
STD-110
Timed.tas a device point Β·v0.5β the wire_weaver side of exact_units PT-4 point 4:ww_si::Timed<V, Tm = DeviceMicros<u32>>,taPoint<DeviceBoot, Fixed<Second, Micro, u32>>(Β΅s since boot in au32, wraps every 71.6 minutes) instead of aSecond, its storage's bytes alone on the wire (wire change EVO-51).Tmis anyww_si::TimePoint: aPointin seconds of a linear origin in integer storage (DeviceMillis<u16>, a 32768 Hz RTC asPow2<-15>,UnixMicros<u64>), withFull(the point in 64 bits),low,wrapping_addandstepsfor the device;TimeStep<Tm>is its step.TimeUnwrapper<Tm>gets the full point back on the host, sharing its core with the dynamicUnwrapper(which stays forSecondtimes: stream heads, observe times,Clock::now()). A batched stream picks itsTmwithbatched(time = ..)(API-61), typed clients hand items out with the full point (CLT-70), the dynamic client and Python as aSecond/Quantityin the point's step. Store 11 bytes perTimed<Ampere>(12), 32Timed<Volt>in 21 bytes (22). Conformance casesstdlib.si.timed.default,.millis_u16,.series; tests inww_si(time_unwrap,store,series),tests/streams_batched(slow_stream_in_millis). Docs. - β
STD-116 Run-time scales in APIs Β·
v0.5β the wire_weaver side of exact_units NUM-42:ww_sire-exportsRunScale(an exact positive scale known at run time,num / den Β· 2^pow2, one canonical form, refused on decode otherwise),Scaled<U, T>(a number at such a scale, the unit in the type) andTicks<T>(Scaled<Second, T>, a stream's own time base). The walker reads both as the derived structs, aScaled's unit its first type argument; the dynamic client and Python read and write them as those structs (showing aScaledas a quantity is CLT-71). STD-77 stays for a scale that lives in another field or resource. Conformance casesstdlib.si.run_scale.ntsc,.rejected,stdlib.si.ticks; testrun_time_scalesintests/quantities. Docs. - β
STD-60 Angle, information and counted things as dimensions Β·
v0.5βDim<'i>has rad and bit as base dimensions and up to four counted bases known by crate and marker name (Item,Sample,Frame,Packet,Cycle,Block,Sector,Chunk,Char,Code, featurecounting, an API's own withww_si::counted!;Bit,Nibble,Byte,Halfword,Word,Doubleword, featureinformation) and a root flag for half exponents (V/βHz,Dim::sqrt): bytes don't convert into % or rad,AngularVelocityisn'tHertz,Per<Sample, Second> Γ Secondis aSample, bytes of a sample only throughPer<Byte, Sample>; checked at compile time (Unit::DIM) and at run time (SIExpr,wire_weaver_client::DynUnit, PythonQuantity.dim).Torqueis J/rad (written NΒ·m). Wire change EVO-16.Dimitself lives inexact_units(NUM-1). ww_si dimensions,ww_si/tests/quantities.rs. - β
STD-59 Runtime
ww_siimprovements Β·v0.5βQuantityonexact_units' units, one unit system.Prefixwithout a table (Roman, 28 Oct 2026): named SI and binary prefixes (Kibi..Tebi), the familiesPow10(i8),Pow2(i8)andFullScale(bits)(32768Β·1/65535, a Q format,Pow10<-4>), andUnknown(u16)for scale kinds of a newer version (DER-25): 4 B in RAM on host, M0, M4F and M33,Volt12 B as before; named prefixes keep their one nibble on the wire, a family takes one byte more. Other scales (a BAM's Ο/2ΒΉβ΅) go toAnyQuantity, which holds anyFixedexactly.Quantity<U, B = Unbounded>with bounds checked on construction and decode,Bexplicit in the model;Quantity::try_from_fixedand Fixed/Quantity parity proptests; conformance cases (derive, dynamic, Python; C gap API-26); docs (ww_si). The client-side bounds check is CLT-54. - π STD-53
Voltwith au16value fails to decode on a device βI2cConfig { io_level: Some(Volt::milli(3300u16)), .. }from the host getsArgsDesFailedon the rePort B200A firmware, the same level as au32value works (report-i2c-master bench run, 27 Oct 2026). Find where theww_sivalue storage / numeric type differs between the host's writer and the no_std reader, fix it there, and add the case to the conformance corpus. - π STD-74 The runtime side catches up Β·
v0.5βQuantity,AnyQuantityandSIExprget the exact magnitude, the Β°C point / interval split, levels and sentinels, soww_sinever lags behindexact_units; theFixedβQuantityparity test (STD-59) covers kinds, points, levels and sentinels too: same result or same refusal.
Evolution of these crates' types and the id ledger (ww_global, EVO)¶
- β
EVO-4 Global traits referenced by hash, global type registry (
ww_global): one id percrate::Traitfor every publicww_stdlibtrait, by hand inwire_weaver_gid.json, renames keep the id throughaliases, ids never reused (retired),assigned_ids.lockappend-only and checked;ww api checkflags a changed id (API-20). - β
EVO-16
ww_si::Dimwith angle, information and counted bases Β·v0.5β the wire change ofDimthat STD-60 brings, inSIExpr/AnyQuantityand in theww_sisnapshot: no longersizedbutfinal_structure, nine 4-bit exponents (rad and bit appended to the seven SI ones), a root bit and four optional counted bases (crate and marker name); a non-canonicalDimis refused on decode. Volt isd2 1f 00 00 00 00.ScalegainsExact(anExactScale, a degree is exactly Ο/180) in the same break. Conformance casesstdlib.si.dim.*(tests/conformance/corpus.json), ww_si. - β
EVO-36
SIExprreferences Β·v0.5β the wire change of STD-107:SIExpr's leaves areDef(UnitDef)(variant 0) andRef(MarkerId)(variant 1, new), soMul,Div,PowandSqrtmove up one place (2..5); anAnyQuantitya client writes names the API's units by reference. Conformance casesstdlib.si.si_expr.sqrt,decibel_loss_per_hundred_metresandrejectedcarry the mark;si_expr.ref,ref_perandany_quantity.*are new. No device or host uses the format. - β
EVO-51
Timed.tas a device point on the wire Β·v0.5β the wire change of STD-110:Timed<V>wast: Second(a prefix nibble, a taggedNumericValue) and ist: Tm, the bytes of the point's storage;ww_si0.5.0 on a new wire line,w5.0, the stdlib snapshots naming aww_sitype saved again. New conformance casesstdlib.si.timed.default,.millis_u16and.series(no sealed case changed). - β
EVO-58 Typed, bounded calendar fields of
ww_date_timeΒ·v0.5β the wire change ofww_date_time(wire linew1.0->w2.0):NaiveDate::monthanddayareIndexFrom1<Month, U4, Range<1, 12>>andIndexFrom1<Day, U5, Range<1, 31>>,NaiveTime::secsisFixed<Second, One, U17, Range<0, 86_399>>andfracOption<Fixed<Second, Nano, U31, Range<0, 1_999_999_999>>>,OtherTimezone::FixedOffset::secsisFixed<Second, One, I18, Range<-86_399, 86_399>>. The bytes are the same, the new bounds are checked on decode (SubtypeOutOfRange), so a bound added is a break. Types embeddingDateTime(ww_board_info,ww_firmware_info,ww_timebase) move to a new wire line with it. No device or host uses the format.
Checksums (ww_crc, TR)¶
- β
TR-31
ww_crc, one CRC crate Β·v0.5β the CRCs ofww_framer,ww_link,ww_block,ww_settingsandww_streamare statics ofww_crc(CRC32_ISO_HDLC,CRC32C,CRC16_USB,CRC16_IBM_SDLC,CRC8_SMBUS), so a firmware links one table per algorithm, its size picked once withtable-256ortable-slice16(bitwise without; the crates'stdfeatures turn ontable-slice16).ww_linkno longer depends onww_blockfor its UDP CRC-32. Docs:docs/transport/ww_framer.md#checksum-and-tail; tests inww_crcat every table size.