README

mizchi/wite/config does not have a README file

#
BinaryKind

pub enum BinaryKind {
Auto
Core
Component
}

#
ChunkConfig

pub struct ChunkConfig {
build : String?
output : String
wit : String?
world : String?
}

#
ConfigInput

pub enum ConfigInput {
None
Single(String)
Named(Map[String, String])
} derive(
Debug
)

impl Show for ConfigInput

#
ConfigInput::new_named

fn ConfigInput::new_named(map : Map[String, String]) -> ConfigInput

#
ConfigInput::new_none

fn ConfigInput::new_none() -> ConfigInput

#
ConfigInput::new_single

fn ConfigInput::new_single(s : String) -> ConfigInput

#
ConfigOutput

pub struct ConfigOutput {
dir : String
}

#
ConfigSelectionFlags

pub struct ConfigSelectionFlags {
config_path : String
explicit_config_path : Bool
use_config : Bool
env_name : String?
all_envs : Bool
remaining_flags : Array[String]
}

#
D1DatabaseBinding

pub(all) struct D1DatabaseBinding {
binding : String
database_name : String
database_id : String
} derive(Eq,
Debug
)

#
EnvironmentConfig

pub struct EnvironmentConfig {
input : ConfigInput
output : ConfigOutput
optimize : String?
kind : BinaryKind
server : ServerConfig?
runtime : RuntimeTarget
strip : Bool
closed_world : Bool
closed_world_root_exports : Array[String]
post_commands : Array[String]
}

#
EnvironmentDef

pub struct EnvironmentDef {
name : String
input : ConfigInput
output : ConfigOutput
optimize : String?
kind : BinaryKind
server : ServerConfig?
runtime : RuntimeTarget
strip : Bool
closed_world : Bool
closed_world_root_exports : Array[String]
post_commands : Array[String]
}

#
KvNamespaceBinding

pub(all) struct KvNamespaceBinding {
binding : String
id : String
} derive(Eq,
Debug
)

#
R2BucketBinding

pub(all) struct R2BucketBinding {
binding : String
bucket_name : String
} derive(Eq,
Debug
)

#
RuntimeTarget

pub enum RuntimeTarget {
Browser
Wasmtime
Workerd
Wagi
Custom(String)
}

#
ServerBindings

pub(all) struct ServerBindings {
kv_namespaces : Array[KvNamespaceBinding]
r2_buckets : Array[R2BucketBinding]
d1_databases : Array[D1DatabaseBinding]
} derive(Eq,
Debug
)

#
ServerConfig

pub struct ServerConfig {
executor : ServerExecutor
route : String
bindings : ServerBindings
} derive(
Debug
)

#
ServerExecutor

pub(all) enum ServerExecutor {
Wagi
Workerd
} derive(Eq,
Debug
)

#
WiteConfigFile

pub struct WiteConfigFile {
build_flags : Array[String]
analyze_flags : Array[String]
profile_flags : Array[String]
build_kind : BinaryKind
analyze_kind : BinaryKind
profile_kind : BinaryKind
input : ConfigInput
output : ConfigOutput
server : ServerConfig?
environments : Map[String, EnvironmentConfig]
chunks : Map[String, ChunkConfig]
}

#
binary_kind_name

fn binary_kind_name(kind : BinaryKind) -> String

#
build_auto_sync_deps_command_args

fn build_auto_sync_deps_command_args(config_path : String) -> Array[String]

#
chunk_names

fn chunk_names(config : WiteConfigFile) -> Array[String]

#
config_input_entries

fn config_input_entries(input : ConfigInput) -> Array[(String, String)]

#
config_input_single_path

fn config_input_single_path(input : ConfigInput) -> String?

#
empty_chunk_config

fn empty_chunk_config() -> ChunkConfig

#
empty_environment_config

fn empty_environment_config() -> EnvironmentConfig

#
empty_server_bindings

fn empty_server_bindings() -> ServerBindings

#
empty_wite_config_file

fn empty_wite_config_file() -> WiteConfigFile

#
environment_names

fn environment_names(config : WiteConfigFile) -> Array[String]

#
is_ts_config

fn is_ts_config(path : String) -> Bool

#
merge_command_flags

fn merge_command_flags(defaults : Array[String], cli_flags : Array[String]) -> Array[String]

#
parse_binary_kind

fn parse_binary_kind(name : String) -> BinaryKind?

#
parse_chunk_config

fn parse_chunk_config(json_value : Json, label : String) -> Result[ChunkConfig, String]

#
parse_config_input

fn parse_config_input(json_value : Json) -> Result[ConfigInput, String]

#
parse_config_output

fn parse_config_output(json_value : Json) -> Result[ConfigOutput, String]

#
parse_config_selection_flags

fn parse_config_selection_flags(flags : Array[String]) -> Result[ConfigSelectionFlags, String]

#
parse_environment_config

fn parse_environment_config(json_value : Json, label : String) -> Result[EnvironmentConfig, String]

#
parse_json_string_array

fn parse_json_string_array(json_value : Json, label : String) -> Result[Array[String], String]

#
parse_runtime_target

fn parse_runtime_target(name : String) -> RuntimeTarget

#
parse_server_bindings

fn parse_server_bindings(json_value : Json) -> Result[ServerBindings, String]

#
parse_server_config

fn parse_server_config(json_value : Json) -> Result[ServerConfig, String]

#
parse_wite_config_json

fn parse_wite_config_json(json_value : Json) -> Result[WiteConfigFile, String]

#
parse_wite_config_section

fn parse_wite_config_section(json_value : Json, label : String) -> Result[(Array[String], BinaryKind), String]

#
parse_wite_config_text

fn parse_wite_config_text(text : String) -> Result[WiteConfigFile, String]

#
resolve_all_environments

fn resolve_all_environments(config : WiteConfigFile) -> Array[EnvironmentDef]

#
resolve_environment

fn resolve_environment(config : WiteConfigFile, env_name : String?) -> Result[EnvironmentConfig, String]

#
resolve_environment_def

fn resolve_environment_def(config : WiteConfigFile, name : String) -> Result[EnvironmentDef, String]

#
runtime_target_name

fn runtime_target_name(target : RuntimeTarget) -> String

#
should_auto_sync_deps

fn should_auto_sync_deps(use_config : Bool, config_exists : Bool) -> Bool

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io