Skip to content

Commit b29f0ad

Browse files
committed
Added bundled MoonBit core library to the repo for publishing
1 parent 79f6664 commit b29f0ad

File tree

614 files changed

+112992
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

614 files changed

+112992
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ To update and build the MoonBit core library:
7777
```
7878
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash -s -- 0.6.19
7979
git submodule update --recursive
80-
moon bundle --target wasm
80+
./update-bundle.sh
8181
```
8282

8383
The bundled core library is included in the compiled crate using the `include_dir!` macro.
84+
It is also pushed into the repository (`bundled-core` directory) to avoid users of the crate from having to build the MoonBit core themselves as part
85+
of the Rust build process.
8486

8587
Running the tests require `wasmtime-cli` to be installed with the following features enabled:
8688
- `component-model`
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
3+
{
4+
"name": "Ubuntu",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"build": {
7+
"dockerfile": "dockerfile",
8+
"options": [
9+
"--platform=linux/amd64"
10+
]
11+
},
12+
13+
// Features to add to the dev container. More info: https://containers.dev/features.
14+
"features": {
15+
"./moonbit": {
16+
"version": "0.0.1"
17+
}
18+
},
19+
20+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
21+
// "forwardPorts": [],
22+
23+
// Use 'postCreateCommand' to run commands after the container is created.
24+
// "postCreateCommand": "uname -a",
25+
26+
// Configure tool-specific properties.
27+
"customizations": {
28+
"vscode": {
29+
"extensions": ["moonbit.moonbit-lang"]
30+
}
31+
}
32+
33+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
34+
// "remoteUser": "root"
35+
}

bundled-core/.devcontainer/dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM --platform=amd64 mcr.microsoft.com/devcontainers/base:jammy
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "moonbit",
3+
"version": "0.0.1",
4+
"name": "moonbit"
5+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sudo -u $_REMOTE_USER /bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/install/unix.sh)"

bundled-core/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Anything
3+
about: Any issue that does not fit into other templates
4+
title: ''
5+
labels: ''
6+
assignees: peter-jerry-ye
7+
8+
---
9+
10+
**Background**
11+
12+
**And**
13+
14+
**But**
15+
16+
**Therefore**
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Consistency review request
3+
about: Describe the behaviors that you find inconsistent
4+
title: "[Consistency Review]"
5+
labels: consistency review
6+
assignees: ''
7+
8+
---
9+
10+
**Current behaviors**
11+
12+
**Expected behaviors**
13+
14+
**Justification**
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: feature request
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
21+
22+
- [ ] I do think that this should be part of the core library and should be delivered to all the MoonBit developers.

0 commit comments

Comments
 (0)