Module uvls::core::config

source ยท
Expand description

Configuration is stored in json files like this

{
    "file":"file.uvl",
    "config":{
          "submodels.subfile":{
              "subfeature":true
          }
          "someFeatures":true,
          "someOtherFeature":1.0,
          "someFeature.attribute1":"test"
    }

}

This representation is very compact since it avoids rewriting long import prefixes but slightly more complex than just using the direct raw path to external symbols. JSON parsing is done with tree-sitter and not serde because there currently is no solid serde json crate for span information and partial parsing so error reporting becomes impossible.

Structsยง

Enumsยง

  • This enum is used for storing a cardinality of a feature
  • This Enum is used for Serialization and Deserialization of a Config
  • This Enum stores the value configured by the user or loaded from a json config File.
  • JSONItem ๐Ÿ”’

Traitsยง

Functionsยง