Add rustpkg support
This commit is contained in:
parent
c6c92dc3e3
commit
a601881dd5
3 changed files with 5 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -3,7 +3,7 @@ TARGET = lmath
|
||||||
ROOT_DIR = .
|
ROOT_DIR = .
|
||||||
|
|
||||||
SRC_DIR = $(ROOT_DIR)/src
|
SRC_DIR = $(ROOT_DIR)/src
|
||||||
SRC_CRATE = $(TARGET).rc
|
SRC_CRATE = $(TARGET).rs
|
||||||
BUILD_DIR = $(ROOT_DIR)/lib
|
BUILD_DIR = $(ROOT_DIR)/lib
|
||||||
|
|
||||||
TEST = $(TARGET)
|
TEST = $(TARGET)
|
||||||
|
|
3
pkg.rs
Normal file
3
pkg.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#[pkg_crate(file = "src/lmath.rs")];
|
||||||
|
#[pkg(id = "lmath", vers = "0.1.0")];
|
||||||
|
#[pkg_dep(url = "git://github.com/bjz/numeric-rs")];
|
|
@ -1,5 +1,5 @@
|
||||||
#[link(name = "lmath",
|
#[link(name = "lmath",
|
||||||
vers = "0.1",
|
vers = "0.1.0",
|
||||||
uuid = "A2DEEB53-EB35-4B44-B247-9044B57E3BA5",
|
uuid = "A2DEEB53-EB35-4B44-B247-9044B57E3BA5",
|
||||||
author = "Brendan Zabarauskas",
|
author = "Brendan Zabarauskas",
|
||||||
url = "https://github.com/bjz/lmath-rs")];
|
url = "https://github.com/bjz/lmath-rs")];
|
Loading…
Reference in a new issue