Compare commits
1 Commits
1825b9a90b
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 61a317fa79 |
@@ -0,0 +1,31 @@
|
||||
package main
|
||||
|
||||
import "flag"
|
||||
|
||||
type arguments struct {
|
||||
buildDeps bool
|
||||
library bool
|
||||
output string
|
||||
depsPath string
|
||||
test bool
|
||||
}
|
||||
|
||||
func main() {
|
||||
initArgs()
|
||||
}
|
||||
func initArgs() *arguments {
|
||||
b := flag.Bool("b", false, "Enables building dependencies from source, instead of searching for already compiled binaries in the library path.")
|
||||
l := flag.Bool("l", false, "Determines if the output should be placed in the standard dependency crate path.")
|
||||
o := flag.String("o", "build", "Output path for this compilation. Should only be used for binaries.")
|
||||
p := flag.String("p", "/usr/lib/feynman", "Library path root.")
|
||||
t := flag.Bool("t", false, "Enables tests. Does not run Cargo benchmarks or examples.")
|
||||
|
||||
flag.Parse()
|
||||
return &arguments{
|
||||
buildDeps: *b,
|
||||
library: *l,
|
||||
output: *o,
|
||||
depsPath: *p,
|
||||
test: *t,
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package feynman
|
||||
package cargo
|
||||
|
||||
type CargoLock struct {
|
||||
Packages []LockPackage `toml:"package"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package feynman
|
||||
package cargo
|
||||
|
||||
type CargoManifest struct {
|
||||
Package `toml:"package"`
|
||||
Reference in New Issue
Block a user