Rename wasmer-kernel-net to kernel-net.

This commit is contained in:
losfair 2019-05-16 09:22:40 +08:00
parent 0ab8a045b9
commit b28992932e
8 changed files with 24 additions and 11 deletions

8
Cargo.lock generated
View File

@ -916,6 +916,10 @@ name = "itoa"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "kernel-net"
version = "0.1.0"
[[package]]
name = "kernel32-sys"
version = "0.2.2"
@ -2343,10 +2347,6 @@ dependencies = [
"wasmer-runtime-core 0.4.1",
]
[[package]]
name = "wasmer-kernel-net"
version = "0.1.0"
[[package]]
name = "wasmer-llvm-backend"
version = "0.4.1"

View File

@ -4,10 +4,10 @@
name = "http-server"
version = "0.1.0"
dependencies = [
"wasmer-kernel-net 0.1.0",
"kernel-net 0.1.0",
]
[[package]]
name = "wasmer-kernel-net"
name = "kernel-net"
version = "0.1.0"

View File

@ -9,4 +9,4 @@ edition = "2018"
[workspace]
[dependencies]
wasmer-kernel-net = { path = "../../lib/kernel-net" }
kernel-net = { path = "../../lib/kernel-net" }

View File

@ -1,6 +1,6 @@
#![feature(wasi_ext)]
use wasmer_kernel_net::{schedule, Epoll, Tcp4Listener, TcpStream};
use kernel_net::{schedule, Epoll, Tcp4Listener, TcpStream};
use std::sync::Arc;
fn serve(stream: Arc<TcpStream>, mut all: Vec<u8>) {

13
examples/wasi-networking/Cargo.lock generated Normal file
View File

@ -0,0 +1,13 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "kernel-net"
version = "0.1.0"
[[package]]
name = "wasi-networking"
version = "0.1.0"
dependencies = [
"kernel-net 0.1.0",
]

View File

@ -7,4 +7,4 @@ edition = "2018"
[workspace]
[dependencies]
wasmer-kernel-net = { path = "../../lib/kernel-net" }
kernel-net = { path = "../../lib/kernel-net" }

View File

@ -1,6 +1,6 @@
#![feature(wasi_ext)]
use wasmer_kernel_net::{schedule, Epoll, Tcp4Listener, TcpStream};
use kernel_net::{schedule, Epoll, Tcp4Listener, TcpStream};
use std::sync::Arc;
fn do_echo(stream: Arc<TcpStream>, buf: Vec<u8>) {

View File

@ -1,5 +1,5 @@
[package]
name = "wasmer-kernel-net"
name = "kernel-net"
version = "0.1.0"
authors = ["Heyang Zhou <zhy20000919@hotmail.com>"]
edition = "2018"