Standard library: stdlib
stdlib provides the standard DUST libraries, including bitsets, bytes, errors,
encoding, hashing, lexical paths, math, seeded random generation, regular expressions, strings,
and time. The plugin has no settings.
Configuration
Select this plugin explicitly when opening the database:
{
"plugins": {
"stdlib": true
}
}
Usage
After selecting stdlib, use its functions in DUST expressions. An explicit seed to crypto/sign/ed25519/generate-keypair or argument list to cli/parse keeps those calls independent of host state. For example, (strings/case "upper" "hello") returns "HELLO".
Contributions
Namespaces
| Namespace | Contribution | |||
|---|---|---|---|---|
bitsets | Full namespace | |||
bytes | Full namespace | |||
chars | Full namespace | |||
cli |
| |||
collections | Full namespace | |||
comparisons | Full namespace | |||
crypto/paseto/v4/public | Full namespace | |||
crypto/sign/ed25519 | ||||
documents | Full namespace | |||
encoding | Full namespace | |||
encoding/bencode | Full namespace | |||
encoding/dust | Full namespace | |||
encoding/edn | Full namespace | |||
encoding/json | Full namespace | |||
encoding/ron | Full namespace | |||
encoding/tron | Full namespace | |||
errors | Full namespace | |||
formats/csv |
| |||
fs | ||||
functions | Full namespace | |||
hashes |
| |||
lists | Full namespace | |||
maps | Full namespace | |||
math | Full namespace | |||
math/aabbs | Full namespace | |||
math/frustums | Full namespace | |||
math/matrices | Full namespace | |||
math/noise |
| |||
math/planes | Full namespace | |||
math/quaternions | Full namespace | |||
math/rays | Full namespace | |||
math/spheres | Full namespace | |||
math/triangles | Full namespace | |||
math/vectors | Full namespace | |||
pegs | Full namespace | |||
processes/shell |
| |||
random | Full namespace | |||
regexes | Full namespace | |||
schemas |
| |||
stats |
| |||
strings | Full namespace | |||
templates | Full namespace | |||
terminals |
| |||
tests | Full namespace | |||
time |