Rename crate to webmetro
This commit is contained in:
parent
4970603236
commit
2310aabe2f
6 changed files with 25 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "lab_ebml"
|
||||
name = "webmetro"
|
||||
version = "0.1.0"
|
||||
authors = ["Tangent 128 <Tangent128@gmail.com>"]
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
extern crate lab_ebml;
|
||||
extern crate webmetro;
|
||||
|
||||
use std::env::args;
|
||||
use std::fs::File;
|
||||
use std::io::Read;
|
||||
use std::path::Path;
|
||||
use lab_ebml::webm::{ parse_webm, SimpleBlock };
|
||||
use lab_ebml::webm::WebmElement::*;
|
||||
use webmetro::webm::{ parse_webm, SimpleBlock };
|
||||
use webmetro::webm::WebmElement::*;
|
||||
|
||||
pub fn main() {
|
||||
let mut args = args();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
extern crate futures;
|
||||
extern crate hyper;
|
||||
extern crate lab_ebml;
|
||||
extern crate webmetro;
|
||||
|
||||
use std::env::args;
|
||||
use std::net::ToSocketAddrs;
|
||||
|
@ -8,12 +8,12 @@ use std::net::ToSocketAddrs;
|
|||
use futures::future::FutureResult;
|
||||
use futures::stream::repeat;
|
||||
use futures::stream::Stream;
|
||||
use lab_ebml::chunk::{Chunk, WebmStream, ChunkingError};
|
||||
use lab_ebml::fixers::ChunkStream;
|
||||
use lab_ebml::stream_parser::StreamEbml;
|
||||
use hyper::{Get, StatusCode};
|
||||
use hyper::header::ContentType;
|
||||
use hyper::server::{Http, Request, Response, Service};
|
||||
use webmetro::chunk::{Chunk, WebmStream, ChunkingError};
|
||||
use webmetro::fixers::ChunkStream;
|
||||
use webmetro::stream_parser::StreamEbml;
|
||||
|
||||
const SRC_FILE: &'static [u8] = include_bytes!("../data/test1.webm");
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
extern crate futures;
|
||||
extern crate hyper;
|
||||
extern crate lab_ebml;
|
||||
extern crate webmetro;
|
||||
|
||||
use std::env::args;
|
||||
use std::io::ErrorKind;
|
||||
|
@ -20,16 +20,6 @@ use futures::{
|
|||
},
|
||||
stream::empty
|
||||
};
|
||||
use lab_ebml::{
|
||||
channel::{
|
||||
Channel,
|
||||
Listener,
|
||||
Transmitter
|
||||
},
|
||||
chunk::{Chunk, WebmStream, ChunkingError},
|
||||
fixers::ChunkStream,
|
||||
stream_parser::StreamEbml
|
||||
};
|
||||
use hyper::{
|
||||
Error as HyperError,
|
||||
Get,
|
||||
|
@ -39,6 +29,16 @@ use hyper::{
|
|||
header::ContentType,
|
||||
server::{Http, Request, Response, Service}
|
||||
};
|
||||
use webmetro::{
|
||||
channel::{
|
||||
Channel,
|
||||
Listener,
|
||||
Transmitter
|
||||
},
|
||||
chunk::{Chunk, WebmStream, ChunkingError},
|
||||
fixers::ChunkStream,
|
||||
stream_parser::StreamEbml
|
||||
};
|
||||
|
||||
type BodyStream = Box<Stream<Item = Chunk, Error = HyperError>>;
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
extern crate lab_ebml;
|
||||
extern crate webmetro;
|
||||
|
||||
use std::io::{Cursor, stdout, Write};
|
||||
use lab_ebml::webm::*;
|
||||
use lab_ebml::webm::WebmElement::*;
|
||||
|
||||
use webmetro::webm::*;
|
||||
use webmetro::webm::WebmElement::*;
|
||||
|
||||
const SRC_FILE: &'static [u8] = include_bytes!("../data/test1.webm");
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
extern crate lab_ebml;
|
||||
extern crate webmetro;
|
||||
|
||||
use std::io::{Cursor, stdout, Write};
|
||||
use lab_ebml::webm::*;
|
||||
use webmetro::webm::*;
|
||||
|
||||
pub fn main() {
|
||||
let mut cursor = Cursor::new(Vec::new());
|
||||
|
|
Loading…
Reference in a new issue