aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix readme for x509-info projectFranck Cuny2025-08-291-4/+4
|
* Merge remote-tracking branch 'import/main'Franck Cuny2025-08-297-0/+1541
|\
| * remove unused filesFranck Cuny2025-08-2911-499/+0
| |
| * Merge pull request #26 from fcuny/dependabot/cargo/clap-4.5.8Franck Cuny2024-07-042-7/+7
| |\ | | | | | | build(deps): bump clap from 4.5.4 to 4.5.8
| | * build(deps): bump clap from 4.5.4 to 4.5.8dependabot[bot]2024-07-012-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [clap](https://github.com/clap-rs/clap) from 4.5.4 to 4.5.8. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.4...v4.5.8) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
| * | build(deps): bump DeterminateSystems/update-flake-lock from 21 to 23dependabot[bot]2024-07-011-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [DeterminateSystems/update-flake-lock](https://github.com/determinatesystems/update-flake-lock) from 21 to 23. - [Release notes](https://github.com/determinatesystems/update-flake-lock/releases) - [Commits](https://github.com/determinatesystems/update-flake-lock/compare/v21...v23) --- updated-dependencies: - dependency-name: DeterminateSystems/update-flake-lock dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
| * Merge pull request #17 from fcuny/update_flake_lock_actionFranck Cuny2024-06-241-12/+12
| |\ | | | | | | Update flake.lock
| | * chore: update flakegithub-actions[bot]2024-06-231-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Flake lock file updates: • Updated input 'fenix': 'github:nix-community/fenix/9a025daf6799e3af80b677f0af57ef76432c3fcf' (2024-06-01) → 'github:nix-community/fenix/bedf55efd03d4796a3ddb267d7e081cc6b34483d' (2024-06-22) • Updated input 'fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/d6d735e6f20ef78b16a79886fe28bd69cf059504' (2024-05-31) → 'github:rust-lang/rust-analyzer/c4681ea2cc1f2d1e1a0568ad03069c57bdcd7a88' (2024-06-21) • Updated input 'naersk': 'github:nix-community/naersk/fa19d8c135e776dc97f4dcca08656a0eeb28d5c0' (2024-05-30) → 'github:nix-community/naersk/941ce6dc38762a7cfb90b5add223d584feed299b' (2024-06-18) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/6132b0f6e344ce2fe34fc051b72fb46e34f668e0' (2024-05-30) → 'github:nixos/nixpkgs/90338afd6177fc683a04d934199d693708c85a3b' (2024-06-21)
| * | build(deps): bump webpki-roots from 0.26.1 to 0.26.3dependabot[bot]2024-06-242-3/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [webpki-roots](https://github.com/rustls/webpki-roots) from 0.26.1 to 0.26.3. - [Release notes](https://github.com/rustls/webpki-roots/releases) - [Commits](https://github.com/rustls/webpki-roots/compare/v/0.26.1...v/0.26.3) --- updated-dependencies: - dependency-name: webpki-roots dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
| * Merge pull request #16 from fcuny/dependabot/cargo/rustls-0.23.8Franck Cuny2024-06-032-7/+7
| |\ | | | | | | build(deps): bump rustls from 0.23.5 to 0.23.8
| | * build(deps): bump rustls from 0.23.5 to 0.23.8dependabot[bot]2024-05-272-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [rustls](https://github.com/rustls/rustls) from 0.23.5 to 0.23.8. - [Release notes](https://github.com/rustls/rustls/releases) - [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md) - [Commits](https://github.com/rustls/rustls/compare/v/0.23.5...v/0.23.8) --- updated-dependencies: - dependency-name: rustls dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
| * | chore: update flakegithub-actions[bot]2024-06-021-12/+12
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Flake lock file updates: • Updated input 'fenix': 'github:nix-community/fenix/297c756ba6249d483c1dafe42378560458842173' (2024-05-10) → 'github:nix-community/fenix/9a025daf6799e3af80b677f0af57ef76432c3fcf' (2024-06-01) • Updated input 'fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/5bf2f85c8054d80424899fa581db1b192230efb5' (2024-05-09) → 'github:rust-lang/rust-analyzer/d6d735e6f20ef78b16a79886fe28bd69cf059504' (2024-05-31) • Updated input 'naersk': 'github:nix-community/naersk/c5037590290c6c7dae2e42e7da1e247e54ed2d49' (2024-04-19) → 'github:nix-community/naersk/fa19d8c135e776dc97f4dcca08656a0eeb28d5c0' (2024-05-30) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/af8b9db5c00f1a8e4b83578acc578ff7d823b786' (2024-05-12) → 'github:nixos/nixpkgs/6132b0f6e344ce2fe34fc051b72fb46e34f668e0' (2024-05-30)
| * chore: update flakegithub-actions[bot]2024-05-121-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Flake lock file updates: • Updated input 'fenix': 'github:nix-community/fenix/94be183087845937b0fd77281c37d0796572b899' (2024-04-28) → 'github:nix-community/fenix/297c756ba6249d483c1dafe42378560458842173' (2024-05-10) • Updated input 'fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/f216be4a0746142c5f30835b254871256a7637b8' (2024-04-27) → 'github:rust-lang/rust-analyzer/5bf2f85c8054d80424899fa581db1b192230efb5' (2024-05-09) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2b1f64b358f2cab62617f26b3870fd0ee375d848' (2024-04-27) → 'github:nixos/nixpkgs/af8b9db5c00f1a8e4b83578acc578ff7d823b786' (2024-05-12)
| * fix URL to the repositoryFranck Cuny2024-04-282-3/+1
| |
| * bump a number of dependencies to their latest versionsdependabot[bot]2024-04-285-365/+486
| | | | | | | | Updating all these dependencies required some significant code change.
| * build(deps): bump clap from 4.0.18 to 4.5.4dependabot[bot]2024-04-222-73/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [clap](https://github.com/clap-rs/clap) from 4.0.18 to 4.5.4. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.0.18...v4.5.4) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
| * use `add_trust_anchors`Franck Cuny2024-04-161-1/+1
| | | | | | | | | | | | ``` error: use of deprecated method `rustls::RootCertStore::add_server_trust_anchors`: Please use `add_trust_anchors` instead ```
| * clippy should fail on warningsFranck Cuny2024-04-161-1/+1
| |
| * build(deps): bump rustls from 0.20.7 to 0.21.10dependabot[bot]2024-04-162-21/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [rustls](https://github.com/rustls/rustls) from 0.20.7 to 0.21.10. - [Release notes](https://github.com/rustls/rustls/releases) - [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md) - [Commits](https://github.com/rustls/rustls/compare/v/0.20.7...v/0.21.10) --- updated-dependencies: - dependency-name: rustls dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
| * Merge pull request #4 from fcuny/dependabot/cargo/anyhow-1.0.82Franck Cuny2024-04-152-3/+3
| |\ | | | | | | build(deps): bump anyhow from 1.0.70 to 1.0.82
| | * build(deps): bump anyhow from 1.0.70 to 1.0.82dependabot[bot]2024-04-162-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.70 to 1.0.82. - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.70...1.0.82) --- updated-dependencies: - dependency-name: anyhow dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
| * | build(deps): bump x509-parser from 0.14.0 to 0.16.0dependabot[bot]2024-04-162-57/+88
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [x509-parser](https://github.com/rusticata/x509-parser) from 0.14.0 to 0.16.0. - [Release notes](https://github.com/rusticata/x509-parser/releases) - [Changelog](https://github.com/rusticata/x509-parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/rusticata/x509-parser/compare/x509-parser-0.14.0...x509-parser-0.16.0) --- updated-dependencies: - dependency-name: x509-parser dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
| * add some workflows for CI and dependabot configFranck Cuny2024-04-153-0/+86
| |
| * replace rust-overlay with naerskFranck Cuny2023-07-054-171/+282
| | | | | | | | | | This is mostly coming from https://github.com/DeterminateSystems/nix-installer/blob/main/flake.nix
| * remove configuration for droneFranck Cuny2023-03-301-50/+0
| |
| * update metadata in Cargo.tomlFranck Cuny2023-03-301-2/+4
| |
| * simplify the main functionFranck Cuny2023-03-301-5/+1
| |
| * use anyhow for error handlingFranck Cuny2023-03-303-3/+11
| |
| * add a flag to check expired certificateFranck Cuny2023-03-285-36/+94
| | | | | | | | | | | | | | | | | | Add the `--insecure` flag so we can check certificates that are expired. When using the short format for the output (the default), if the certificate has expired, it will report how many days ago. For certificates that have not expired, the remaining number of days will be printed.
| * doc: update READMEFranck Cuny2022-11-131-7/+55
| |
| * ref: print succinct or detailed information about a certFranck Cuny2022-11-133-71/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the time, all I want is to know when the certificate is going to expire. In some cases, I might want to see more details. This change introduce a new argument to the CLI to select what level of information to print. The new option (`--format`) will by default print the short summary, like this: ``` > ./target/debug/x509-info twitter.com twitter.com is valid until Mon, 12 Dec 2022 15:59:59 -0800 (29 days left) ``` While with `--format long` we get the following: ``` > ./target/debug/x509-info --format long twitter.com certificate version: V3 serial: 0d:e1:52:69:6b:2f:96:70:d6:c7:db:18:ce:1c:71:a0 subject: C=US, ST=California, L=San Francisco, O=Twitter, Inc., CN=twitter.com issuer: C=US, O=DigiCert Inc, CN=DigiCert TLS RSA SHA256 2020 CA1 validity not before : Sun, 12 Dec 2021 16:00:00 -0800 not after : Mon, 12 Dec 2022 15:59:59 -0800 validity days : 364 remaining days: 29 SANs: DNS:twitter.com DNS:www.twitter.com ```
| * fix: small nitFranck Cuny2022-11-091-1/+1
| |
| * fix: ensure rust-src is installedFranck Cuny2022-11-091-1/+3
| |
| * fix: configure properly the overlayFranck Cuny2022-11-081-1/+1
| |
| * flake.lock: UpdateFranck2022-11-081-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Flake lock file updates: • Updated input 'flake-utils': 'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07) → 'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/d3c2379d149073e53eb5580deafad475c1cabe28' (2022-10-20) → 'github:NixOS/nixpkgs/1d29ae3a66395506fd85655a8d74279ad4f9098f' (2022-11-08) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/1b436f36e2812c589e6d830e3223059ea9661100' (2022-10-24) → 'github:cachix/pre-commit-hooks.nix/06f48d63d473516ce5b8abe70d15be96a0147fcd' (2022-11-06) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/dd334e95eb46e79e52a75c80ef9ba73c3d867840' (2022-10-20) → 'github:oxalica/rust-overlay/9235990723630e1a55e1ed6bca5954e4e31cfbd7' (2022-11-08)
| * ci: add pipeline to update flacksFranck Cuny2022-11-071-0/+14
| |
| * ci: switch from GitHub action to droneFranck Cuny2022-11-064-60/+37
| | | | | | | | | | | | | | | | | | | | | | I'm running my own CI at ci.fcuny.net using drone for now. I've spare compute capacity at home, and it's way faster than the GHA runners. For now I'm losing the following: - dependabot: that's a GitHub only function, I'll need to figure out something - nix flake update: I'll need to figure out a way to update flakes on a regular basis, probably a custom script to take care of that
| * buid: use crane to build the binaryFranck Cuny2022-11-042-30/+114
| | | | | | | | | | | | | | crane is a nix library to build cargo projects, similar to naersk. The main advantage over naersk is the composability. I'll give it a try and see if it's faster for local development.
| * build: follow flake-inputs for rust overlayFranck Cuny2022-11-012-16/+4
| |
| * build: add pre-commit checksFranck Cuny2022-11-013-4/+56
| |
| * ci: rewrite GitHub actions to use `nix develop|build`Franck Cuny2022-11-011-75/+36
| | | | | | | | | | | | | | Instead of relying on GitHub actions to check/test/build the code, I can rely entirely on nix to do these steps. This has the added benefit that the workflow will be similar to my local environment and make it easy to test the worfklow before running it on GitHub.
| * fix: disable default feature on `chrono` crateFranck Cuny2022-11-012-49/+46
| | | | | | | | See https://github.com/chronotope/chrono/issues/602 for more details.
| * build: get rid of naerskFranck Cuny2022-11-012-55/+28
| | | | | | | | | | | | | | | | We can build a rust binary without naesrk,with the help of `buildRustPackage`. Simplify a bit the overall build by consuming information from Cargo.toml and Cargo.lock.
| * build: configure rust overlay to follow nixpkgsFranck Cuny2022-11-012-18/+7
| |
| * meta: add a configuration to allow/deny dependenciesFranck Cuny2022-11-011-0/+46
| | | | | | | | | | | | cargo-deny is a plugin to lint a project's dependency graph. This allow me to set which licenses are allowed for the dependencies, and configure the security vulnerability database.
| * meta: ignore result directoryFranck Cuny2022-11-011-0/+1
| |
| * build(deps): bump clap from 4.0.17 to 4.0.18dependabot[bot]2022-10-242-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [clap](https://github.com/clap-rs/clap) from 4.0.17 to 4.0.18. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.0.17...v4.0.18) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
| * build(deps): bump actions/checkout from 2 to 3dependabot[bot]2022-10-211-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
| * feat: get information about a given certificateFranck Cuny2022-10-217-1/+1197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Read the domain name from the CLI, and get and print information about the certificate to STDOUT. The output looks like this: ``` > ./target/debug/x509-info badssl.com Subject: CN=*.badssl.com O= L= Issuer: CN=R3 O=Let's Encrypt L= DNS Names: *.badssl.com, badssl.com Validity Period Not before: 2022-08-12T07:57:46-07:00 Not After: 2022-11-10T06:57:45-08:00 ```
| * build: fix the name of the workflowFranck Cuny2022-10-191-1/+1
| |
| * meta: initial commitFranck Cuny2022-10-1910-0/+182
| | | | | Create the initial scaffolding for a rust project, using `cargo` and a nix template.
* delete unneeded filesFranck Cuny2025-08-294-69/+0
|
* Bump thiserror from 2.0.9 to 2.0.11dependabot[bot]2025-01-132-5/+5
| | | | | | | | | | | | | | Bumps [thiserror](https://github.com/dtolnay/thiserror) from 2.0.9 to 2.0.11. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/2.0.9...2.0.11) --- updated-dependencies: - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* fix clippy feedbackFranck Cuny2024-12-291-2/+2
|
* report the number of E cores and P coresFranck Cuny2024-12-291-13/+62
| | | | Report the CPU and GPU bandwidths for some of the M core models.
* Merge pull request #1 from fcuny/dependabot/cargo/thiserror-2.0.9Franck Cuny2024-12-292-9/+9
|\ | | | | Bump thiserror from 1.0.61 to 2.0.9
| * Bump thiserror from 1.0.61 to 2.0.9dependabot[bot]2024-12-292-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.61 to 2.0.9. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.61...2.0.9) --- updated-dependencies: - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
* | add a few more useful files to the repoFranck Cuny2024-12-292-0/+24
|/
* add initial github actionsFranck Cuny2024-12-292-0/+45
|
* update project's metadataFranck Cuny2024-12-291-0/+11
|
* split main.rs into bin/apple_silicon.rs and lib.rsFranck Cuny2024-12-292-3/+4
| | | | | Create a binary named `apple_silicon`, and add a library named to the project, so it can be re-used by external projects.
* report TDP for GPU and CPUFranck Cuny2024-12-292-11/+186
| | | | | | | | Add the TDP for the GPUs and CPUs, for the models we know about. Apple does not publish information about TDP so we're going to have to gather that information by going over various sites. Add some unit tests.
* use a constant value for the path to sysctlFranck Cuny2024-12-281-1/+3
|
* document the public typesFranck Cuny2024-12-281-0/+4
|
* be more explicit in the default outputFranck Cuny2024-12-281-1/+1
|
* initial commitFranck Cuny2024-07-096-0/+181
``` [18:04] mba-fcuny:apple_silicon (main +) | cargo run Compiling apple_silicon v0.1.0 (/Users/fcuny/workspace/apple_silicon) Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s Running `target/debug/apple_silicon` our CPU is an Apple M2, and we have 8 cores, and 10 GPU cores ```