Move the wasm lib, and cleanup rust directory and all references (#5585)

* git mv src/wasm-lib rust

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* mv wasm-lib to workspace

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* mv kcl-lib

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* mv derive docs

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* resolve file paths

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* clippy

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* move more shit

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix more paths

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* make yarn build:wasm work

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix scripts

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixups

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* better references

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix cargo ci

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix reference

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix more ci

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix tests

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* cargo sort

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix script

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fmt

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix a dep

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* sort

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* remove unused deps

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* Revert "remove unused deps"

This reverts commit fbabdb062e275fd5cbc1476f8480a1afee15d972.

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* deps;

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2025-03-01 13:59:01 -08:00
committed by GitHub
parent 0a2bf4b55f
commit c3bdc6f106
1443 changed files with 509 additions and 4274 deletions

View File

@ -0,0 +1 @@
{{~ #if maxItems ~}}{{~ #if (lte maxItems 3) ~}}`[{{#times maxItems ~}}{{~ #if @first ~}}{{else ~}}, {{/if ~}}{{> propertyType ../items}}{{/times}}]`{{else ~}}`[` {{ > propertyType items }} `]`{{~ /if ~}}{{else ~}}`[` {{ > propertyType items }} `]`{{~ /if ~}}

View File

@ -0,0 +1,33 @@
---
title: "{{name}}"
excerpt: "{{safe_yaml summary}}"
layout: manual
---
{{#if deprecated}}
**WARNING:** This function is deprecated.
{{/if}}
{{{summary}}}
{{{description}}}
```js
{{{name}}}{{#if type_}}: {{{type_}}}{{/if}}{{#if value}} = {{{value}}}{{/if}}
```
{{#if examples}}
### Examples
{{#each examples}}
```js
{{{this.content}}}
```
{{#unless @root.is_utilities}}
![Rendered example of {{@root.name}} {{@index}}](data:image/png;base64,{{{this.image_base64}}})
{{/unless}}
{{/each}}
{{/if}}

View File

@ -0,0 +1,59 @@
---
title: "{{name}}"
excerpt: "{{safe_yaml summary}}"
layout: manual
---
{{#if deprecated}}
**WARNING:** This function is deprecated.
{{/if}}
{{{summary}}}
{{{description}}}
```js
{{{fn_signature}}}
```
{{#if tags}}
### Tags
{{#each tags}}
* `{{this}}`
{{/each}}
{{/if}}
{{#if args}}
### Arguments
| Name | Type | Description | Required |
|----------|------|-------------|----------|
{{#each args}}
| `{{name}}` | `{{type_}}` | {{{firstLine description}}} | {{#if required}}Yes{{else}}No{{/if}} |
{{/each}}
{{/if}}
{{#if return_value}}
### Returns
`{{return_value.type_}}`{{#if return_value.description}} - {{{firstLine return_value.description}}}{{/if}}
{{/if}}
{{#if examples}}
### Examples
{{#each examples}}
```js
{{{this.content}}}
```
{{#unless @root.is_utilities}}
![Rendered example of {{@root.name}} {{@index}}](data:image/png;base64,{{{this.image_base64}}})
{{/unless}}
{{/each}}
{{/if}}

View File

@ -0,0 +1,22 @@
---
title: "KCL Standard Library"
excerpt: "Documentation for the KCL standard library for the Zoo Modeling App."
layout: manual
---
## Table of Contents
### Language
{{#each lang_topics}}
* [`{{name}}`](kcl/{{file_name}})
{{/each}}
### Standard library
{{#each modules}}
* **`{{name}}`**
{{#each functions}}
* [`{{name}}`](kcl/{{file_name}})
{{/each}}
{{/each}}

View File

@ -0,0 +1,13 @@
{{#if properties}}
{{#if @root.inDefinition}}
#### Properties
{{else}}
## Properties
{{/if}}
| Property | Type | Description | Required |
|----------|------|-------------|----------|
{{#each properties}}
| `{{@key}}` | {{~ > propertyType this ~}} | {{{firstLine this.description}}} | {{#if (lookup ../required @key)}}Yes{{else}}No{{/if}} |
{{/each}}
{{/if}}

View File

@ -0,0 +1,11 @@
{{~ #if $ref ~}}
{{pretty_ref $ref}}{{else if anyOf ~}}
**anyOf:** {{#each anyOf}}{{> propertyType this}}{{#unless @last}} **OR** {{/unless}}{{/each}}{{else if oneOf ~}}
**oneOf:** {{#each oneOf}}{{> propertyType this}}{{#unless @last}} **OR** {{/unless}}{{/each}}{{else if allOf ~}}
**allOf:** {{#each allOf}}{{> propertyType this}}{{#unless @last}} **OR** {{/unless}}{{/each}}{{else if enum ~}}
enum: {{pretty_enum enum}}{{else if items ~}}
{{~ >array ~}}{{else ~}}
`{{type}}{{~ #if format }}{{#if neq format "double" }} ({{format}}){{~/if ~}}
{{~ /if ~}}`
{{~ #if maximum }} (**maximum:** {{maximum}}){{~/if~}}{{~ #if minimum }} (**minimum:** {{minimum}}){{~/if~}}
{{~ /if ~}}

View File

@ -0,0 +1,70 @@
{{#if description}}
{{{description}}}
{{/if}}
{{#if $ref}}
{{pretty_ref $ref}}
{{else if enum}}
**enum:** {{pretty_enum enum}}
{{else if type}}
**Type:** `{{type}}`{{~ #if format }} (`{{format}}`){{~/if ~}}{{~ #if maximum }} (**maximum:** {{maximum}}){{~/if~}}{{~ #if minimum }} (**minimum:** {{minimum}}){{~/if~}}
{{else}}
{{/if}}
{{#if $schema}}
**Schema:** `{{$schema}}`
{{/if}}
{{#if items}}
{{>array}}
{{/if}}
{{#if anyOf}}
**This schema accepts any of the following:**
{{#each anyOf}}
{{> schema this}}
----
{{/each}}
{{/if}}
{{#if oneOf}}
**This schema accepts exactly one of the following:**
{{#each oneOf}}
{{> schema this}}
----
{{/each}}
{{/if}}
{{#if allOf}}
**This schema requires all of the following:**
{{#each allOf}}
{{> schema this}}
----
{{/each}}
{{/if}}
{{> properties}}
{{#if definitions}}
## Definitions
{{#each definitions}}
### {{@key}}
{{> schemaType this}}
{{/each}}
{{/if}}
{{#if examples}}
## Examples
{{#each examples}}
```json
{{{json this}}}
```
{{/each}}
{{/if}}

View File

@ -0,0 +1,19 @@
{{#if $ref}}
{{pretty_ref $ref}}
{{else if anyOf}}
**anyOf**
{{else if oneOf}}
**oneOf**
{{else if allOf}}
**allOf**
{{else if enum}}
**enum:** {{pretty_enum enum}}
{{else}}
`{{type}}`{{
#if
format}} (`{{format}}`){{
/if
}}
{{
/if
}}

View File

@ -0,0 +1,7 @@
---
title: "{{title}}"
excerpt: "{{safe_yaml description}}"
layout: manual
---
{{> schema this}}