Closed Wyn-Price closed 2 months ago
looks like the build is failing in CI
Yup, I can have a look at it tonight.
I reran crate2nix, hopefully that's what the problem was. It seems to have changed the format of crate-hashes.json
(even though the version of crate2nix
was the same) ,but hopefully that's fine.
Sure, done
I'm happy to update nixpkgs if you create a new release, or I can just update to the latest commit
tagged as v0.2.1
A patch for cloudflare/cloudflare-rs/pull/240 Fixes #57
I've included @jcgruenhage's make-owner-fields-optional changes in my cloudflare-rs PR.
Removes some unused imports that no longer exist (
ApiClient
), and the change inapi.rs
is to coerce the error type fromClient::new
, as I'm assuming they're now returning their own error type. I can make this nicer if you want.I can confirm that this works with
A
records, I haven't tested withAAAA
records but I can't see why it wouldn't also work.Before:
``` $ cargo run -- --records x.wynprice.com --token XXX Finished dev [unoptimized + debuginfo] target(s) in 0.13s Running `target/debug/cfdyndns --records x.wynprice.com --token XXX` INFO cfdyndns::ip > ... Error: error decoding response body: missing field `multiple_railguns_allowed` at line 1 column 586 ```After - when there is no change needed:
``` $ cargo run -- --records x.wynprice.com --token XXX Compiling cfdyndns v0.2.0 (/home/wp/programming/cfdyndns) Finished dev [unoptimized + debuginfo] target(s) in 4.37s Running `target/debug/cfdyndns --records x.wynprice.com --token XXX` INFO cfdyndns::ip > ... INFO cfdyndns::dns > skipping A record `x.wynprice.com`; already up to date ```After - when the DNS record needs changing:
``` $ cargo run -- --records x.wynprice.com --token XXX Compiling cfdyndns v0.2.0 (/home/wp/programming/cfdyndns) Finished dev [unoptimized + debuginfo] target(s) in 0.14s Running `target/debug/cfdyndns --records x.wynprice.com --token XXX` INFO cfdyndns::ip > ... INFO cfdyndns::dns > request: x.wynprice.com (... → ...) ```