56 lines
1.2 KiB
Plaintext
56 lines
1.2 KiB
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "experiments/moon-nix/store"
|
|
|
|
import {
|
|
"moonbitlang/core/debug",
|
|
}
|
|
|
|
// Values
|
|
pub fn base32_len(Int32) -> Int32
|
|
|
|
pub let default_store_dir : String
|
|
|
|
pub fn hello_probe() -> Int32
|
|
|
|
pub fn nixbase32_decode(StringView, Int32) -> Bytes raise NixError
|
|
|
|
pub fn nixbase32_encode(BytesView) -> String
|
|
|
|
pub fn parse_sha256(String) -> Bytes raise
|
|
|
|
pub fn[T] raises(() -> T raise) -> Bool
|
|
|
|
pub fn sha256(BytesView) -> Bytes
|
|
|
|
pub fn sha256_nix32(BytesView) -> String
|
|
|
|
pub fn to_hex(BytesView) -> String
|
|
|
|
// Errors
|
|
pub(all) suberror NixError {
|
|
Parse(String)
|
|
Verify(String)
|
|
Network(String)
|
|
Io(String)
|
|
Unsupported(String)
|
|
}
|
|
pub impl Show for NixError
|
|
|
|
// Types and methods
|
|
#derive(Eq, @debug.Debug)
|
|
pub(all) struct StorePath {
|
|
store_dir : String
|
|
hash : String
|
|
name : String
|
|
}
|
|
pub fn StorePath::base_name(Self) -> String
|
|
pub fn StorePath::logical(Self) -> String
|
|
pub fn StorePath::parse(String) -> Self raise NixError
|
|
pub fn StorePath::parse_base(String, store_dir? : String) -> Self raise NixError
|
|
pub fn StorePath::to_string(Self) -> String
|
|
pub fn StorePath::with_store_dir(Self, String) -> Self
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|