Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOOLS-2557 Update eng for new Rust Makefiles. #8

Merged
merged 2 commits into from Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -8,3 +8,7 @@ Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# Eng rust toolchain
/rust
/cache
2 changes: 1 addition & 1 deletion .gitmodules
@@ -1,3 +1,3 @@
[submodule "deps/eng"]
path = deps/eng
url = https://github.com/joyent/eng.git
url = https://github.com/TritonDataCenter/eng.git
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -4,7 +4,7 @@ version = "0.2.0"
description = "Crate providing an interface to illumos's PRIVILEGES(5)"
readme = "README.md"
authors = ["Mike Zeller <mike@mikezeller.net>"]
repository = "https://github.com/joyent/rust-illumos-priv"
repository = "https://github.com/TritonDataCenter/rust-illumos-priv"
keywords = ["illumos", "solaris", "security", "privileges"]
edition = "2018"
license = "MPL-2.0"
Expand Down
10 changes: 7 additions & 3 deletions Makefile
@@ -1,10 +1,14 @@
RUST_CODE = 1
RUST_TOOLCHAIN = 1.49.0

ENGBLD_REQUIRE := $(shell git submodule update --init deps/eng)
include ./deps/eng/tools/mk/Makefile.defs
include ./deps/eng/tools/mk/Makefile.rust.defs

TOP ?= $(error Unable to access eng.git submodule Makefiles.)

test:
cargo test
.PHONY: test
test: | $(CARGO_EXEC)
$(CARGO) test

include ./deps/eng/tools/mk/Makefile.targ
include ./deps/eng/tools/mk/Makefile.rust.targ