Re: [apache/incubator-teaclave-sgx-sdk] Using std Aware Cargo (#311)

2021-01-05 Thread Yu Ding
@mssun thanks! i'll create a branch for rust-sgx-sdk, based on your build-std 
repo :-)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/311#issuecomment-755097386

Re: [VOTE] Accept Rust OP-TEE TrustZone SDK to Apache Teaclave (incubating)

2021-01-05 Thread Matt Sicker
+1 assuming you won't have any problems with getting the software
grants for your donation :)

On Tue, 5 Jan 2021 at 20:21, Gao,Yingchun(SEC)  wrote:
>
> +1
>
> -邮件原件-
> 发件人: Mingshen Sun 
> 发送时间: 2021年1月5日 7:43
> 收件人: dev@teaclave.apache.org; simonsy...@gmail.com
> 主题: [VOTE] Accept Rust OP-TEE TrustZone SDK to Apache Teaclave (incubating)
>
> Hi all,
>
> Rust OP-TEE TrustZone SDK provides abilities to build safe TrustZone 
> applications in Rust. The SDK is based on the OP-TEE project which follows 
> GlobalPlatform TEE specifications and provides ergonomic APIs.
>
> The SDK was developed by Baidu and open source on Jan 30, 2019. I'm one of 
> the initial comitters of the project.
>
> On behalf of the Rust OP-TEE TrustZone SDK project, I would like to call a 
> VOTE to accept Rust OP-TEE TrustZone SDK into Apache Teaclave
> (incubating) as a subproject. I'm using part of the incubator proposal 
> template, but omit some irrelevant sections.
>
> Please cast your vote:
>
>   [ ] +1, bring Rust OP-TEE TrustZone SDK into Teaclave
>   [ ] +0, I don't care either way
>   [ ] -1, do not bring Rust OP-TEE TrustZone SDK into Teaclave, because...
>
> The vote will open at least for 72 hours and only votes from the Teaclave 
> PPMC are binding, but votes from everyone are welcome.
>
>  Proposal ===
>
> ## Abstract
>
> Rust OP-TEE TrustZone SDK provides abilities to build safe TrustZone 
> applications in Rust. The SDK is based on the OP-TEE project which follows 
> GlobalPlatform TEE specifications and provides ergonomic APIs.
> More information can be found at the project repository:
> https://github.com/sccommunity/rust-optee-trustzone-sdk.
>
> ## Proposal
>
> Rust OP-TEE TrustZone SDK provides abilities to build safe TrustZone 
> applications in Rust.
>
> ### Background
>
> The Rust OP-TEE TrustZone project is being actively developed within Baidu. 
> It was open source on Jan 30, 2019.
>
> ### Rationale
>
> ARM TrustZone is another hardware trusted execution environment 
> implementation. The goal of Teaclave is to provide a universal secure 
> computing platform which is agnostic with TEE implementation.
> Currently, Teaclave has Teaclave SGX SDK and only supports Intel SGX.
> With the Rust OP-TEE TrustZone SDK, we can build the Teaclave platform on ARM 
> TrustZone.
>
> ### Initial Goals
>
> - Transfer repository to the Apache Incubator under the Teaclave project
> - Code cleanup and more documentation
>
>  Meritocracy:
>
> The Rust OP-TEE TrustZone SDK project was originally developed by Shengye Wan 
> and Mingshen Sun within Baidu. The project now has new committers from around 
> the world. Some open source projects like https://github.com/veracruz-project 
> are using the SDK to build their systems. We encourage everyone to ask 
> questions and create pull requests to the project.
>
>  Community:
>
> We see several open source projects which are using the SDK for development. 
> Also, we already receive contributions from external comitters. The community 
> is growing overtime.
>
>  Core Developers:
>
> The core developers are:
> - Shengye Wan (simonsywan at gmail dot com)
> - Mingshen Sun (mssun at apache.org)
>
>  Alignment:
>
> The project is a complimentary of Teaclave's TEE backends.
>
> ### Known Risks
>
> An exercise in self-knowledge. Risks don't mean that a project is 
> unacceptable. If they are recognized and noted, then they can be addressed 
> during incubation.
>
>  Project Name
>
> Since the project will be accepted as a subproject in Teaclave, the project 
> is renamed to Teaclave TrustZone SDK.
>
>  Inexperience with Open Source:
>
> One of the core developers, Mingshen Sun is from the Teaclave community. He's 
> familiar with The Apache Way for the open source community.
>
>  Length of Incubation:
>
> The project will be in incubation with Apache Teaclave (incubating) project.
>
> ### Documentation
>
> - 
> https://github.com/sccommunity/rust-optee-trustzone-sdk/wiki/Getting-started-with-OPTEE-for-QEMU-ARMv8
>
> ### Initial Source
>
> - https://github.com/sccommunity/rust-optee-trustzone-sdk
>
> ### Source and Intellectual Property Submission Plan
>
> We will submit a Software Grant for this project later.
>
>  External Dependencies:
>
> The dependencies have Apache compatible license, which is provided under the 
> BSD 2-Clause license.
>
>  Cryptography:
>
> N/A
>
> ### Required Resources
>
>  Mailing lists:
>
> The project shares the same mailing list of Teaclave.
>
>  Git Repositories:
>
> - https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git
> - https://github.com/apache/incubator-teaclave-trustzone-sdk
>
>  Issue Tracking:
>
> Same with Teaclave.
>
>  Other Resources:
>
> N/A
>
> ### Initial Committers
>
> - Shengye Wan (simonsywan at gmail dot com)
> - Mingshen Sun (mssun at apache dot org)
>
> -
> To unsubscribe, 

Re: [apache/incubator-teaclave-sgx-sdk] Using std Aware Cargo (#311)

2021-01-05 Thread Sammy
I think the `build-std` option will improve this SDK greatly, which will helps 
in stuff like removing the `std::prelude::v1::*` from SGX-ported crates. So I 
will give it a shot this weekend   

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/311#issuecomment-755035324

答复: [VOTE] Accept Rust OP-TEE TrustZone SDK to Apache Teaclave (incubating)

2021-01-05 Thread Gao,Yingchun(SEC)
+1

-邮件原件-
发件人: Mingshen Sun  
发送时间: 2021年1月5日 7:43
收件人: dev@teaclave.apache.org; simonsy...@gmail.com
主题: [VOTE] Accept Rust OP-TEE TrustZone SDK to Apache Teaclave (incubating)

Hi all,

Rust OP-TEE TrustZone SDK provides abilities to build safe TrustZone 
applications in Rust. The SDK is based on the OP-TEE project which follows 
GlobalPlatform TEE specifications and provides ergonomic APIs.

The SDK was developed by Baidu and open source on Jan 30, 2019. I'm one of the 
initial comitters of the project.

On behalf of the Rust OP-TEE TrustZone SDK project, I would like to call a VOTE 
to accept Rust OP-TEE TrustZone SDK into Apache Teaclave
(incubating) as a subproject. I'm using part of the incubator proposal 
template, but omit some irrelevant sections.

Please cast your vote:

  [ ] +1, bring Rust OP-TEE TrustZone SDK into Teaclave
  [ ] +0, I don't care either way
  [ ] -1, do not bring Rust OP-TEE TrustZone SDK into Teaclave, because...

The vote will open at least for 72 hours and only votes from the Teaclave PPMC 
are binding, but votes from everyone are welcome.

 Proposal ===

## Abstract

Rust OP-TEE TrustZone SDK provides abilities to build safe TrustZone 
applications in Rust. The SDK is based on the OP-TEE project which follows 
GlobalPlatform TEE specifications and provides ergonomic APIs.
More information can be found at the project repository:
https://github.com/sccommunity/rust-optee-trustzone-sdk.

## Proposal

Rust OP-TEE TrustZone SDK provides abilities to build safe TrustZone 
applications in Rust.

### Background

The Rust OP-TEE TrustZone project is being actively developed within Baidu. It 
was open source on Jan 30, 2019.

### Rationale

ARM TrustZone is another hardware trusted execution environment implementation. 
The goal of Teaclave is to provide a universal secure computing platform which 
is agnostic with TEE implementation.
Currently, Teaclave has Teaclave SGX SDK and only supports Intel SGX.
With the Rust OP-TEE TrustZone SDK, we can build the Teaclave platform on ARM 
TrustZone.

### Initial Goals

- Transfer repository to the Apache Incubator under the Teaclave project
- Code cleanup and more documentation

 Meritocracy:

The Rust OP-TEE TrustZone SDK project was originally developed by Shengye Wan 
and Mingshen Sun within Baidu. The project now has new committers from around 
the world. Some open source projects like https://github.com/veracruz-project 
are using the SDK to build their systems. We encourage everyone to ask 
questions and create pull requests to the project.

 Community:

We see several open source projects which are using the SDK for development. 
Also, we already receive contributions from external comitters. The community 
is growing overtime.

 Core Developers:

The core developers are:
- Shengye Wan (simonsywan at gmail dot com)
- Mingshen Sun (mssun at apache.org)

 Alignment:

The project is a complimentary of Teaclave's TEE backends.

### Known Risks

An exercise in self-knowledge. Risks don't mean that a project is unacceptable. 
If they are recognized and noted, then they can be addressed during incubation.

 Project Name

Since the project will be accepted as a subproject in Teaclave, the project is 
renamed to Teaclave TrustZone SDK.

 Inexperience with Open Source:

One of the core developers, Mingshen Sun is from the Teaclave community. He's 
familiar with The Apache Way for the open source community.

 Length of Incubation:

The project will be in incubation with Apache Teaclave (incubating) project.

### Documentation

- 
https://github.com/sccommunity/rust-optee-trustzone-sdk/wiki/Getting-started-with-OPTEE-for-QEMU-ARMv8

### Initial Source

- https://github.com/sccommunity/rust-optee-trustzone-sdk

### Source and Intellectual Property Submission Plan

We will submit a Software Grant for this project later.

 External Dependencies:

The dependencies have Apache compatible license, which is provided under the 
BSD 2-Clause license.

 Cryptography:

N/A

### Required Resources

 Mailing lists:

The project shares the same mailing list of Teaclave.

 Git Repositories:

- https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git
- https://github.com/apache/incubator-teaclave-trustzone-sdk

 Issue Tracking:

Same with Teaclave.

 Other Resources:

N/A

### Initial Committers

- Shengye Wan (simonsywan at gmail dot com)
- Mingshen Sun (mssun at apache dot org)

-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[apache/incubator-teaclave-sgx-sdk] Using std Aware Cargo (#311)

2021-01-05 Thread Mingshen Sun
"std Aware Cargo" (https://github.com/rust-lang/wg-cargo-std-aware) is one of 
the most important building blocks for Teaclave SGX SDK. With this, we can 
build SGX enclave without worry about the complexity brought by Xargo or no-std 
Cargo. However this is a long-term plan for Cargo, which doesn't gain higher 
priority from the community.

Recently, I found that they already has an MVP implementation 
(https://github.com/rust-lang/wg-cargo-std-aware#mvp-implementation). This 
supports an option called `build-std` to build std/core/compiler-builtins from 
sources. However, the MVP implementation only partially solves our issue. I 
didn't see any further plan further.

However, I found the `build-std` option may good enough for us. I created a 
repository to show the possibility of using it: 
https://github.com/mssun/build-std.

If you're interested in this, please help me to figure out if there're any 
potential difficulties of using `build-std`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/311