Add initial cargo packaging

This commit is contained in:
Christopher Cole 2015-01-25 07:11:08 +00:00
parent c8a55415df
commit 64e2e1ffe8
4 changed files with 32 additions and 0 deletions

2
.gitignore vendored
View File

@ -9,3 +9,5 @@
# Generated by Cargo
/target/
Cargo.lock

18
Cargo.toml Normal file
View File

@ -0,0 +1,18 @@
[package]
name = "elf"
version = "0.0.1"
authors = ["Christopher Cole <chris.cole.09@gmail.com>"]
license = "Apache-2.0"
homepage = "https://github.com/cole14/rust-elf/"
repository = "https://github.com/cole14/rust-elf/"
description = "A pure-rust parser of ELF files"
keywords = ["elf"]
readme = "README.md"
[[bin]]
name = "rust-readelf"
[lib]
name = "elf"

5
src/bin/rust-readelf.rs Normal file
View File

@ -0,0 +1,5 @@
extern crate elf;
fn main() {
println!("EI_NIDENT: {}!", elf::EI_NIDENT);
}

7
src/lib.rs Normal file
View File

@ -0,0 +1,7 @@
pub const EI_NIDENT: usize = 16;
pub struct Elf32Ehdr {
e_ident: [u8; EI_NIDENT]
}