Skip to content

Commit 27f246b

Browse files
Weining2019wenyongh
authored andcommitted
Enable WASI feature, enhance security and add SGX sample (#142)
Change emcc to clang Refine interpreter to improve perforamnce
1 parent 29c7c74 commit 27f246b

File tree

159 files changed

+9553
-3799
lines changed

Some content is hidden

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

159 files changed

+9553
-3799
lines changed

CODE_OF_CONDUCT.md

Lines changed: 47 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
# Contributor Covenant Code of Conduct
1+
+++
2+
version = "1.4"
3+
aliases = ["/version/1/4"]
4+
+++
25

3-
*Note*: this Code of Conduct pertains to individuals' behavior. Please also see the [Organizational Code of Conduct][OCoC].
6+
# Contributor Covenant Code of Conduct
47

58
## Our Pledge
69

7-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
10+
In the interest of fostering an open and welcoming environment, we as
11+
contributors and maintainers pledge to make participation in our project and
12+
our community a harassment-free experience for everyone, regardless of age, body
13+
size, disability, ethnicity, sex characteristics, gender identity and expression,
14+
level of experience, education, socio-economic status, nationality, personal
15+
appearance, race, religion, or sexual identity and orientation.
816

917
## Our Standards
1018

11-
Examples of behavior that contributes to creating a positive environment include:
19+
Examples of behavior that contributes to creating a positive environment
20+
include:
1221

1322
* Using welcoming and inclusive language
1423
* Being respectful of differing viewpoints and experiences
@@ -18,32 +27,55 @@ Examples of behavior that contributes to creating a positive environment include
1827

1928
Examples of unacceptable behavior by participants include:
2029

21-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
30+
* The use of sexualized language or imagery and unwelcome sexual attention or
31+
advances
2232
* Trolling, insulting/derogatory comments, and personal or political attacks
2333
* Public or private harassment
24-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
25-
* Other conduct which could reasonably be considered inappropriate in a professional setting
34+
* Publishing others' private information, such as a physical or electronic
35+
address, without explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
2638

2739
## Our Responsibilities
2840

29-
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
41+
Project maintainers are responsible for clarifying the standards of acceptable
42+
behavior and are expected to take appropriate and fair corrective action in
43+
response to any instances of unacceptable behavior.
3044

31-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
45+
Project maintainers have the right and responsibility to remove, edit, or
46+
reject comments, commits, code, wiki edits, issues, and other contributions
47+
that are not aligned to this Code of Conduct, or to ban temporarily or
48+
permanently any contributor for other behaviors that they deem inappropriate,
49+
threatening, offensive, or harmful.
3250

3351
## Scope
3452

35-
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
53+
This Code of Conduct applies within all project spaces, and it also applies when
54+
an individual is representing the project or its community in public spaces.
55+
Examples of representing a project or community include using an official
56+
project e-mail address, posting via an official social media account, or acting
57+
as an appointed representative at an online or offline event. Representation of
58+
a project may be further defined and clarified by project maintainers.
3659

3760
## Enforcement
3861

39-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the Bytecode Alliance CoC team at [[email protected]](mailto:[email protected]). The CoC team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The CoC team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
62+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
63+
reported by contacting the project team at [email protected]. All
64+
complaints will be reviewed and investigated and will result in a response that
65+
is deemed necessary and appropriate to the circumstances. The project team is
66+
obligated to maintain confidentiality with regard to the reporter of an incident.
67+
Further details of specific enforcement policies may be posted separately.
4068

41-
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the Bytecode Alliance's leadership.
69+
Project maintainers who do not follow or enforce the Code of Conduct in good
70+
faith may face temporary or permanent repercussions as determined by other
71+
members of the project's leadership.
4272

4373
## Attribution
4474

45-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
75+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
76+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
4677

47-
[OCoC]: ORG_CODE_OF_CONDUCT.md
4878
[homepage]: https://www.contributor-covenant.org
49-
[version]: https://www.contributor-covenant.org/version/1/4/
79+
80+
For answers to common questions about this code of conduct, see
81+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ We use GitHub issues to track public bugs. Report a bug by [open a new issue](ht
3636
Code of Conduct
3737
===============
3838

39-
WAMR is a [Bytecode Alliance](https://bytecodealliance.org/) project, and follows the Bytecode Alliance's [Code of Conduct](CODE_OF_CONDUCT.md) and [Organizational Code of Conduct](ORG_CODE_OF_CONDUCT.md).
39+
This project is governed by the [Contributor Covenant](CODE_OF_CONDUCT.md).
40+
All contributors and participants agree to abide by its terms.

ORG_CODE_OF_CONDUCT.md

Lines changed: 0 additions & 139 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
WebAssembly Micro Runtime
22
=========================
3-
4-
**A [Bytecode Alliance][BA] project**
5-
6-
[BA]: https://bytecodealliance.org/
7-
83
WebAssembly Micro Runtime (WAMR) is a standalone WebAssembly (WASM) runtime with small footprint. It includes a few parts as below:
94
- A WebAssembly VM core (namely iwasm)
105
- The supporting API's for the WASM applications
@@ -14,8 +9,8 @@ WebAssembly Micro Runtime (WAMR) is a standalone WebAssembly (WASM) runtime with
149
Current Features of WAMR
1510
=========================
1611
- WASM interpreter (AOT is planned)
17-
- Supports for a subset of Libc.
18-
- Supports "SIDE_MODULE=1" EMCC compilation option
12+
- Supports for a subset of Libc API.
13+
- Supports for [WASI API](https://github.com/WebAssembly/WASI)
1914
- Provides embedding C API
2015
- Provides a mechanism for exporting native API's to WASM applications
2116
- Supports the programming of firmware apps in a large range of languages (C/C++/Java/Rust/Go/TypeScript etc.)
@@ -62,7 +57,7 @@ Embed WAMR
6257

6358
WAMR can be built into a standalone executable which takes the WASM application file name as input, and then executes it. In some other situations, the WAMR source code is embedded the product code and built into the final product.
6459

65-
WAMR provides a set of C API for loading the WASM module, instantiating the module and invoking a WASM function from a native call.
60+
WAMR provides a set of C API for loading the WASM module, instantiating the module and invoking a WASM function from a native call.
6661

6762
See the [doc/embed_wamr.md](./doc/embed_wamr.md) for the details.
6863

@@ -71,7 +66,7 @@ WAMR application programming library
7166

7267
WAMR defined event driven programming model:
7368
- Single thread per WASM app instance
74-
- App must implement system callbacks: on_init, on_destroy
69+
- App must implement system callbacks: on_init, on_destrory
7570

7671

7772
In general there are a few API classes for the WASM application programming:
@@ -117,7 +112,7 @@ See the [major features releasing history and contributor names](./doc/release_a
117112
Roadmap
118113
=======
119114

120-
See the [roadmap](./doc/roadmap.md) to understand what major features are planned or under development.
115+
See the [roadmap](./doc/roadmap.md) to understand what major features are planed or under development.
121116

122117
Please submit issues for any new feature request, or your plan for contributing new features.
123118

SECURITY.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

core/app-mgr/app-manager/app_manager.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ extern "C" {
2424
#define app_manager_printf printk
2525
#endif
2626

27-
#define ID_HOST -3
28-
#define ID_APP_MGR -2
29-
#define ID_NONE (uint32)-1
30-
3127
#define SEND_ERR_RESPONSE(mid, err_msg) do { \
3228
app_manager_printf("%s\n", err_msg); \
3329
send_error_response_to_host(mid, INTERNAL_SERVER_ERROR_5_00, err_msg); \

0 commit comments

Comments
 (0)