Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ edition = "2018"

version = "0.3.1"
authors = ["wycats", "rustasync"]

[dependencies]
sgx_tstd = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git", features = ["net"] }
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly-2021-05-11
13 changes: 12 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,21 @@
#![doc(html_favicon_url = "https://yoshuawuyts.com/assets/http-rs/favicon.ico")]
#![doc(html_logo_url = "https://yoshuawuyts.com/assets/http-rs/logo-rounded.png")]


// ensure we don't import any parts of the std library - we use sgx_tstd instead
#![no_std]
#[macro_use]
extern crate sgx_tstd as std;

use std::cmp::Ordering;
use std::collections::{btree_map, BTreeMap};
use std::collections::{btree_map, btree_map::BTreeMap};
use std::ops::Index;

use std::{
vec::Vec,
string::{String, ToString}
};

use crate::nfa::{CharacterClass, NFA};

#[doc(hidden)]
Expand Down
6 changes: 6 additions & 0 deletions src/nfa.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
use sgx_tstd as std;
use std::{
string::{String, ToString},
vec::Vec,
};

use std::collections::HashSet;

use self::CharacterClass::{Ascii, InvalidChars, ValidChars};
Expand Down