diff --git a/.cargo/audit.toml b/.cargo/audit.toml new file mode 100644 index 0000000..e3c3935 --- /dev/null +++ b/.cargo/audit.toml @@ -0,0 +1,2 @@ +[advisories] +ignore = ["RUSTSEC-2021-0127", "RUSTSEC-2021-0145"] \ No newline at end of file diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..2e79ce6 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,6 @@ +[unstable] +registry-auth = true +[registries.foresight-mining-software-corporation] +index = "ssh://git@ssh.shipyard.rs/foresight-mining-software-corporation/crate-index.git" +[net] +git-fetch-with-cli = true \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..542a250 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Rust - Continuous Integration + +on: + push: + branches: [ master ] + workflow_dispatch: + +jobs: + release: + uses: ForesightMiningSoftwareCorporation/github/.github/workflows/publish-rust-crate.yml@v1.0.0 + with: + private-registry-host: ssh.shipyard.rs + private-registry-name: foresight-mining-software-corporation + initial_event_name: ${{ github.event_name }} + skip-test: true + secrets: + github-token: ${{ secrets.GITHUB_TOKEN }} + private-registry-private-key: ${{ secrets.CARGO_PRIVATE_REGISTRY_SSH_PRIVATE_KEY }} + private-registry-token: ${{ secrets.CARGO_PRIVATE_REGISTRY_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..59c4faa --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,16 @@ +on: + pull_request: + +name: Test on PR + +jobs: + test-fse-app: + uses: ForesightMiningSoftwareCorporation/github/.github/workflows/rust-test.yml@v1.0.0 + with: + private-registry-host: ssh.shipyard.rs + private-registry-name: foresight-mining-software-corporation + initial_event_name: ${{ github.event_name }} + secrets: + github-token: ${{ secrets.GITHUB_TOKEN }} + private-registry-private-key: ${{ secrets.CARGO_PRIVATE_REGISTRY_SSH_PRIVATE_KEY }} + private-registry-token: ${{ secrets.CARGO_PRIVATE_REGISTRY_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 4fffb2f..91b8835 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target /Cargo.lock +.idea/ diff --git a/Cargo.toml b/Cargo.toml index c6a9b7a..5cde847 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,8 @@ authors = ["Duncan Fairbanks "] version = "0.1.0" edition = "2021" license = "MIT OR Apache-2.0" +repository = "https://github.com/ForesightMiningSoftwareCorporation/vector_expr" +publish = ["foresight-mining-software-corporation"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html