remove registry
This commit is contained in:
parent
3c630a6b74
commit
700f4430be
|
@ -2,5 +2,4 @@
|
|||
members = [
|
||||
"examples",
|
||||
"ash",
|
||||
"vk-registry",
|
||||
]
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
[package]
|
||||
name = "vk-registry"
|
||||
version = "0.1.0"
|
||||
authors = ["Maik Klein <maikklein@googlemail.com>"]
|
||||
|
||||
[dependencies]
|
||||
|
||||
xml-rs = "0.7"
|
||||
failure = "0.1.1"
|
|
@ -1,41 +0,0 @@
|
|||
use std::path::Path;
|
||||
use std::io::Read;
|
||||
use failure::Error;
|
||||
use xml;
|
||||
pub struct VendorId {
|
||||
pub name: String,
|
||||
pub id: String,
|
||||
pub comment: String,
|
||||
}
|
||||
impl VendorId {
|
||||
pub fn from_xml<P: AsRef<Path>>(path: P) -> Self {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
pub struct VendorIds {
|
||||
pub vendor_ids: Vec<VendorId>,
|
||||
}
|
||||
impl VendorIds{
|
||||
pub fn from_xml<P: AsRef<Path>>(path: P) -> Self {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Registry {
|
||||
pub vendor_ids: VendorIds,
|
||||
}
|
||||
|
||||
impl Registry {
|
||||
pub fn from_xml<P: AsRef<Path>>(path: P) -> Result<Registry, Error> {
|
||||
fn inner(path: &Path) -> Result<Registry, Error> {
|
||||
use std::fs::File;
|
||||
use std::io::BufReader;
|
||||
let file = File::open(path)?;
|
||||
let buf_reader = BufReader::new(file);
|
||||
let event_reader = xml::EventReader::new(buf_reader);
|
||||
unimplemented!()
|
||||
}
|
||||
inner(path.as_ref())
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
extern crate xml;
|
||||
#[macro_use]
|
||||
extern crate failure;
|
||||
|
||||
|
||||
pub mod data;
|
Loading…
Reference in a new issue