Add initial cargo packaging
This commit is contained in:
parent
c8a55415df
commit
64e2e1ffe8
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,3 +9,5 @@
|
||||
|
||||
# Generated by Cargo
|
||||
/target/
|
||||
|
||||
Cargo.lock
|
||||
|
18
Cargo.toml
Normal file
18
Cargo.toml
Normal 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
5
src/bin/rust-readelf.rs
Normal file
@ -0,0 +1,5 @@
|
||||
extern crate elf;
|
||||
|
||||
fn main() {
|
||||
println!("EI_NIDENT: {}!", elf::EI_NIDENT);
|
||||
}
|
7
src/lib.rs
Normal file
7
src/lib.rs
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
pub const EI_NIDENT: usize = 16;
|
||||
|
||||
pub struct Elf32Ehdr {
|
||||
e_ident: [u8; EI_NIDENT]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user