Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
benmaddison committed May 15, 2023
1 parent 3b18b8d commit f09db5c
Show file tree
Hide file tree
Showing 7 changed files with 133 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
status:
project:
default:
target: auto
threshold: 1%
comment:
behavior: new
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- directory: /
open-pull-requests-limit: 5
package-ecosystem: cargo
rebase-strategy: auto
schedule:
interval: daily
- directory: /
open-pull-requests-limit: 5
package-ecosystem: github-actions
rebase-strategy: auto
schedule:
interval: daily
38 changes: 38 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "CI/CD"

on:
- push
- pull_request

jobs:

lint:
name: lint
uses: wolcomm/.github/.github/workflows/rust-lint.yml@master

test:
name: test
strategy:
fail-fast: false
matrix:
toolchain: [stable, nightly]
args:
- --lib
- --test versions
include:
- toolchain: nightly
args: --doc
uses: wolcomm/.github/.github/workflows/rust-test.yml@master
with:
toolchain: ${{ matrix.toolchain }}
args: ${{ matrix.args }}

publish:
name: publish
if: ${{ github.event_name == 'push' &&
startsWith(github.ref, 'refs/tag') }}
needs:
- lint
- test
uses: wolcomm/.github/.github/workflows/rust-publish.yml@explicit-package
secrets: inherit
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/Cargo.lock
18 changes: 18 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "juniper-jet"
version = "0.1.0-alpha.1"
edition = "2021"
authors = ["Ben Maddison <benm@workonline.africa>"]
description = "Rust client for the Juniper JET gRPC API"
license = "MIT"
repository = "https://github.com/wolcomm/juniper-jet-rs"
readme = "README.md"
categories = ["network-programming"]

[lib]
name = "jet"

[dependencies]

[dev-dependencies]
version-sync = "^0.9"
49 changes: 49 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
//! A rust client for the Juniper JET gRPC API

Check failure on line 1 in src/lib.rs

View workflow job for this annotation

GitHub Actions / nightly

package `juniper-jet` is missing `package.keywords` metadata

error: package `juniper-jet` is missing `package.keywords` metadata | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata = note: `-D clippy::cargo-common-metadata` implied by `-D warnings`

Check failure on line 1 in src/lib.rs

View workflow job for this annotation

GitHub Actions / stable

package `juniper-jet` is missing `package.keywords` metadata

error: package `juniper-jet` is missing `package.keywords` metadata | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata = note: `-D clippy::cargo-common-metadata` implied by `-D warnings`

Check failure on line 1 in src/lib.rs

View workflow job for this annotation

GitHub Actions / stable

package `juniper-jet` is missing `package.keywords` metadata

error: package `juniper-jet` is missing `package.keywords` metadata | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata = note: `-D clippy::cargo-common-metadata` implied by `-D warnings`
#![doc(html_root_url = "https://docs.rs/juniper-jet/0.1.0-alpha.1")]
// clippy lints
#![warn(clippy::pedantic)]
#![warn(clippy::cargo)]
#![warn(clippy::nursery)]
#![allow(clippy::redundant_pub_crate)]
// rustc lints
#![allow(box_pointers)]
#![warn(absolute_paths_not_starting_with_crate)]
#![warn(deprecated_in_future)]
#![warn(elided_lifetimes_in_paths)]
#![warn(explicit_outlives_requirements)]
#![warn(keyword_idents)]
#![warn(macro_use_extern_crate)]
#![warn(meta_variable_misuse)]
#![warn(missing_abi)]
#![warn(missing_copy_implementations)]
#![warn(missing_debug_implementations)]
#![warn(missing_docs)]
#![warn(non_ascii_idents)]
#![warn(noop_method_call)]
#![warn(pointer_structural_match)]
#![warn(rust_2021_incompatible_closure_captures)]
#![warn(rust_2021_incompatible_or_patterns)]
#![warn(rust_2021_prefixes_incompatible_syntax)]
#![warn(rust_2021_prelude_collisions)]
#![warn(single_use_lifetimes)]
#![warn(trivial_casts)]
#![warn(trivial_numeric_casts)]
#![warn(unreachable_pub)]
#![warn(unsafe_code)]
#![warn(unsafe_op_in_unsafe_fn)]
#![warn(unstable_features)]
#![warn(unused_crate_dependencies)]
#![warn(unused_extern_crates)]
#![warn(unused_import_braces)]
#![warn(unused_lifetimes)]
#![warn(unused_qualifications)]
#![warn(unused_results)]
#![warn(variant_size_differences)]
// docs.rs build config
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

// silence unused dev-dependency warnings
#[cfg(test)]
mod deps {
use version_sync as _;
}
4 changes: 4 additions & 0 deletions tests/versions.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#[test]
fn test_html_root_url() {
version_sync::assert_html_root_url_updated!("src/lib.rs");
}

0 comments on commit f09db5c

Please sign in to comment.