remove registry

This commit is contained in:
Maik Klein 2018-06-03 19:41:43 +02:00
parent 3c630a6b74
commit 700f4430be
4 changed files with 0 additions and 57 deletions

View file

@ -2,5 +2,4 @@
members = [ members = [
"examples", "examples",
"ash", "ash",
"vk-registry",
] ]

View file

@ -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"

View file

@ -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())
}
}

View file

@ -1,6 +0,0 @@
extern crate xml;
#[macro_use]
extern crate failure;
pub mod data;