Skip to content

Commit 40835b1

Browse files
committed
Add _ssl stdlib module
1 parent a42e94b commit 40835b1

File tree

4 files changed

+678
-0
lines changed

4 files changed

+678
-0
lines changed

Cargo.lock

Lines changed: 97 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vm/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ paste = "0.1"
7070
base64 = "0.11"
7171
is-macro = "0.1"
7272
result-like = "^0.2.1"
73+
foreign-types-shared = "0.1"
74+
num_enum = "0.4"
7375

7476
flame = { version = "0.2", optional = true }
7577
flamer = { version = "0.3", optional = true }
@@ -89,6 +91,8 @@ subprocess = "0.2.2"
8991
num_cpus = "1"
9092
socket2 = { version = "0.3", features = ["unix"] }
9193
rustyline = "6.0"
94+
openssl = "0.10"
95+
openssl-sys = "0.9"
9296

9397
[target.'cfg(not(any(target_arch = "wasm32", target_os = "redox")))'.dependencies]
9498
dns-lookup = "1.0"

vm/src/stdlib/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ mod select;
5555
#[cfg(not(target_arch = "wasm32"))]
5656
pub mod signal;
5757
#[cfg(not(target_arch = "wasm32"))]
58+
mod ssl;
59+
#[cfg(not(target_arch = "wasm32"))]
5860
mod subprocess;
5961
#[cfg(windows)]
6062
mod winapi;
@@ -123,6 +125,7 @@ pub fn get_module_inits() -> HashMap<String, StdlibInitFunc> {
123125
);
124126
modules.insert("signal".to_owned(), Box::new(signal::make_module));
125127
modules.insert("select".to_owned(), Box::new(select::make_module));
128+
modules.insert("_ssl".to_owned(), Box::new(ssl::make_module));
126129
modules.insert("_subprocess".to_owned(), Box::new(subprocess::make_module));
127130
#[cfg(not(target_os = "redox"))]
128131
modules.insert("zlib".to_owned(), Box::new(zlib::make_module));

0 commit comments

Comments
 (0)