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:
| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 00 | 54 52 4F 4E | magic TRON |
| 04 | 6C 7374646C6962 | txt "stdlib" |
| 0B | 09 | bit true |
| 0C | 0F 0A 04000000 0B00 0000 | map leaf, size 10: @4 → @B |
| 16 | 7C 706C7567696E73 | txt "plugins" |
| 1E | 0F 0A 16000000 0C00 0000 | map leaf, size 10: @16 → @C |
| 28 | 1E000000 00000000 | root → @1E; previous: none |
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 |