A counter released over three major versions, to show how the directory lists and compares a package's versions.
A synthetic package: it isn't published to any registry.
Interfaces
counter— A counter, counting up from zero by any amount, or back to it.
WIT
/// A counter released over three major versions, to show how the directory lists and
/// compares a package's versions.
///
/// A synthetic package: it isn't published to any registry.
package kitchen-sink:releases@1.3.0-dev;
/// A counter, counting up from zero by any amount, or back to it.
interface counter {
/// The current count, now wide enough to never wrap.
get: func() -> u64;
/// Adds one to the count.
increment: func();
/// Sets the count back to zero.
reset: func();
/// Adds to the count.
add: func(n: u64);
/// Subtracts from the count, never below zero, in a 1.3 that was never released.
subtract: func(n: u64);
}