Skip to content

main.aug ​

Hashing with Rust BLAKE3 · Source and specification

Files in this project

Code ​

aug
// aug-spec: "main.aug.md" explains this file. Read it before changes; refresh with aug spec.
import hashText from hashing
import HashError from "https://github.com/GreenPandaStudios/aug-blake3#e9f7b92d98a2f9c36de530f4dfc1740012fb5e5e"
try:
    print(value=hashText(value="abc"))
catch HashError error:
    print(value=error.message)
aug
// aug-spec: "main.aug.md" explains this file. Read it before changes; refresh with aug spec.
import hashText from hashing
import HashError from "https://github.com/GreenPandaStudios/aug-blake3#e9f7b92d98a2f9c36de530f4dfc1740012fb5e5e"
try {
    print(value=hashText(value="abc"))
}
catch HashError error {
    print(value=error.message)
}

Compiled specification ​

Interactions and sequences

Startup ​

It prints hashText with value "abc". If this work raises HashError as error, it prints error.message. source

Dependencies ​

It uses HashError (message) from https://github.com/GreenPandaStudios/aug-blake3#e9f7b92d98a2f9c36de530f4dfc1740012fb5e5e. It uses hashText from hashing.

Built-in operations follow the language reference.

Last updated:

The world runs on language