Skip to content

Commit

Permalink
chore: moved c509-certificate crate (#4)
Browse files Browse the repository at this point in the history
* chore: moved c509-certificate crate

* chore: clean up cspell exclusions
  • Loading branch information
minikin authored Aug 22, 2024
1 parent 275ecba commit 37e7cad
Show file tree
Hide file tree
Showing 49 changed files with 5,750 additions and 19 deletions.
34 changes: 24 additions & 10 deletions .config/dictionaries/project.dic
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ CBOR
cbork
cdylib
CEST
CHAINCODE
chaincode
CHAINCODE
chainsync
childs
chrono
Expand Down Expand Up @@ -51,6 +51,7 @@ dotenvy
dotglob
drep
dreps
earthfile
Earthfile
encryptor
Errno
Expand Down Expand Up @@ -83,27 +84,30 @@ highwater
hmod
ideascale
idents
ipfs
ipld
IFMT
Intellij
ioerr
iohk
ipfs
ipfs
ipld
jetbrains
jsonschema
jorm
jormungandr
Jörmungandr
jsonschema
lcov
Leay
Leshiy
libsqlite
libtest
libipld
libp2p
libsqlite
libssh
libtest
linkat
lintfix
lipsum
livedocs
localizable
lookaside
maindbname
Expand All @@ -118,6 +122,7 @@ mkcron
mkdelay
mkdirat
moderations
msvc
Multiaddr
multiera
nanos
Expand All @@ -140,8 +145,8 @@ plpgsql
pollable
Pozhylenkov
pread
preopened
preopen
preopened
preopens
preprod
psql
Expand All @@ -156,6 +161,7 @@ readlinkat
redoc
REMOVEDIR
renameat
reqwest
retriggering
rulelist
rulename
Expand All @@ -165,13 +171,17 @@ rustdoc
rustdocflags
rustflags
rustfmt
rustls
RUSTSEC
rustyline
saibatizoku
sandboxed
scanorder
scanstatus
Sched
scrollability
seckey
sitedocs
slotno
smac
stevenj
Expand All @@ -188,6 +198,7 @@ thiserror
timelike
timespec
tinygo
tinyvec
toobig
toolsets
Traceback
Expand All @@ -202,14 +213,17 @@ vitss
voteplan
voteplans
wasi
wasip
WASI
wasip
wasip
wasip
wasmtime
webasm
webassembly
webpki
WORKDIR
xprivate
XPRV
xprv
XPRV
xpub
yoroi
yoroi
2 changes: 0 additions & 2 deletions .github/workflows/branch-delete-cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Branch Deleted

# cspell: words earthfile

on:
delete:
branches:
Expand Down
2 changes: 0 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.1.24 AS cspell-c

FROM debian:stable-slim

# cspell: words livedocs sitedocs

# check-markdown : markdown check using catalyst-ci.
check-markdown:
DO mdlint-ci+CHECK
Expand Down
93 changes: 93 additions & 0 deletions rust/c509-certificate/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Use MOLD linker where possible, but ONLY in CI applicable targets.

# Configure how Docker container targets build.

# If you want to customize these targets for a local build, then customize them in your:
# $CARGO_HOME/config.toml
# NOT in the project itself.
# These targets are ONLY the targets used by CI and inside docker builds.

# DO NOT remove `"-C", "target-feature=+crt-static"` from the rustflags for these targets.

# Should be the default to have fully static rust programs in CI
[target.x86_64-unknown-linux-musl]
linker = "clang"
rustflags = [
"-C", "link-arg=-fuse-ld=/usr/bin/mold",
"-C", "target-feature=-crt-static"
]

# Should be the default to have fully static rust programs in CI
[target.aarch64-unknown-linux-musl]
linker = "clang"
rustflags = [
"-C", "link-arg=-fuse-ld=/usr/bin/mold",
"-C", "target-feature=-crt-static"
]

[build]
rustflags = []
rustdocflags = [
"--enable-index-page",
"-Z",
"unstable-options",
]

[profile.dev]
opt-level = 1
debug = true
debug-assertions = true
overflow-checks = true
lto = false
panic = "unwind"
incremental = true
codegen-units = 256

[profile.release]
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
lto = "thin"
panic = "unwind"
incremental = false
codegen-units = 16

[profile.test]
opt-level = 3
debug = true
lto = false
debug-assertions = true
incremental = true
codegen-units = 256

[profile.bench]
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
lto = "thin"
incremental = false
codegen-units = 16

[alias]
lint = "clippy --all-targets"
lintfix = "clippy --all-targets --fix --allow-dirty"
lint-vscode = "clippy --message-format=json-diagnostic-rendered-ansi --all-targets"

docs = "doc --release --no-deps --document-private-items --bins --lib --examples"
# nightly docs build broken... when they are'nt we can enable these docs... --unit-graph --timings=html,json -Z unstable-options"
testunit = "nextest run --release --bins --lib --tests --benches --no-fail-fast -P ci"
testcov = "llvm-cov nextest --release --bins --lib --tests --benches --no-fail-fast -P ci"
testdocs = "test --doc --release"

# Rust formatting, MUST be run with +nightly
fmtchk = "fmt -- --check -v --color=always"
fmtfix = "fmt -- -v"

[term]
quiet = false # whether cargo output is quiet
verbose = false # whether cargo provides verbose output
color = "auto" # whether cargo colorizes output use `CARGO_TERM_COLOR="off"` to disable.
progress.when = "never" # whether cargo shows progress bar
progress.width = 80 # width of progress bar
48 changes: 48 additions & 0 deletions rust/c509-certificate/.config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[store]
# The directory under the workspace root at which nextest-related files are
# written. Profile-specific storage is currently written to dir/<profile-name>.
# dir = "target/nextest"

[profile.default]
# Print out output for failing tests as soon as they fail, and also at the end
# of the run (for easy scrollability).
failure-output = "immediate-final"

# Do not cancel the test run on the first failure.
fail-fast = true

status-level = "all"
final-status-level = "all"

[profile.ci]
# Print out output for failing tests as soon as they fail, and also at the end
# of the run (for easy scrollability).
failure-output = "immediate-final"
# Do not cancel the test run on the first failure.
fail-fast = false

status-level = "all"
final-status-level = "all"


[profile.ci.junit]
# Output a JUnit report into the given file inside 'store.dir/<profile-name>'.
# If unspecified, JUnit is not written out.

path = "junit.xml"

# The name of the top-level "report" element in JUnit report. If aggregating
# reports across different test runs, it may be useful to provide separate names
# for each report.
report-name = "nextest"

# Whether standard output and standard error for passing tests should be stored in the JUnit report.
# Output is stored in the <system-out> and <system-err> elements of the <testcase> element.
store-success-output = true

# Whether standard output and standard error for failing tests should be stored in the JUnit report.
# Output is stored in the <system-out> and <system-err> elements of the <testcase> element.
#
# Note that if a description can be extracted from the output, it is always stored in the
# <description> element.
store-failure-output = true
11 changes: 11 additions & 0 deletions rust/c509-certificate/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Rust ###
# Generated by Cargo
# will have compiled files and executables
debug/
target/

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

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
5 changes: 5 additions & 0 deletions rust/c509-certificate/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions rust/c509-certificate/.idea/c509-certificate.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions rust/c509-certificate/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions rust/c509-certificate/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 37e7cad

Please sign in to comment.