Skip to content

Refactoring of the libcoap-sys build script #58

Refactoring of the libcoap-sys build script

Refactoring of the libcoap-sys build script #58

Triggered via pull request January 22, 2025 02:12
Status Failure
Total duration 3m 21s
Artifacts 9

test.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

1 error and 115 warnings
lint
Process completed with exit code 1.
[rustfmt] libcoap/build.rs#L5: libcoap/build.rs#L5
Should be `use anyhow::{bail, Result};`
[rustfmt] libcoap/src/crypto/pki_rpk/key.rs#L11: libcoap/src/crypto/pki_rpk/key.rs#L11
Should be `use std::os::unix::ffi::OsStrExt;`
[rustfmt] libcoap/src/crypto/pki_rpk/key.rs#L12: libcoap/src/crypto/pki_rpk/key.rs#L12
Should be `use std::{ffi::CString, fmt::Debug, path::Path};`
[rustfmt] libcoap/src/event.rs#L16: libcoap/src/event.rs#L16
Should be ` coap_session_get_context, coap_session_get_type, coap_session_t, coap_session_type_t_COAP_SESSION_TYPE_SERVER,`
[rustfmt] libcoap/src/message/mod.rs#L35: libcoap/src/message/mod.rs#L35
Should be ` Block, CoapMatch, CoapMessageCode, CoapMessageType, CoapOptionNum, CoapOptionType, ContentFormat, ETag, Echo,`
[rustfmt] libcoap/src/message/mod.rs#L36: libcoap/src/message/mod.rs#L36
Should be ` HopLimit, MaxAge, NoResponse, Observe, Oscore, ProxyScheme, ProxyUri, RequestTag, Size, UriHost, UriPath,`
[rustfmt] libcoap/src/message/mod.rs#L37: libcoap/src/message/mod.rs#L37
Should be ` UriPort, UriQuery,`
[rustfmt] libcoap/src/message/request.rs#L13: libcoap/src/message/request.rs#L13
Should be ` error::{MessageConversionError, MessageTypeError, OptionValueError},`
[rustfmt] libcoap/src/message/request.rs#L14: libcoap/src/message/request.rs#L14
Should be ` message::{construct_path_string, construct_query_string, CoapMessage, CoapMessageCommon, CoapOption},`
[rustfmt] libcoap/src/message/response.rs#L11: libcoap/src/message/response.rs#L11
Should be ` error::{MessageConversionError, MessageTypeError, OptionValueError},`
[rustfmt] libcoap/src/prng.rs#L20: libcoap/src/prng.rs#L20
Should be `use std::{`
[rustfmt] libcoap/src/prng.rs#L28: libcoap/src/prng.rs#L28
Should be `#[cfg(feature = "rand")]`
[rustfmt] libcoap/src/protocol.rs#L59: libcoap/src/protocol.rs#L59
Should be `use num_traits::FromPrimitive;`
[rustfmt] libcoap/src/resource.rs#L33: libcoap/src/resource.rs#L33
Should be ` session::{CoapServerSession, CoapSessionCommon},`
[rustfmt] libcoap/src/session/client.rs#L27: libcoap/src/session/client.rs#L27
Should be ` context::CoapContext,`
[rustfmt] libcoap/src/types.rs#L14: libcoap/src/types.rs#L14
Should be ` ffi::{CStr, CString},`
[rustfmt] libcoap/src/types.rs#L15: libcoap/src/types.rs#L15
Should be ` fmt::{Debug, Display, Formatter},`
[rustfmt] libcoap/src/types.rs#L16: libcoap/src/types.rs#L16
Should be ` marker::PhantomPinned,`
[rustfmt] libcoap/src/types.rs#L35: libcoap/src/types.rs#L35
Should be `use num_derive::FromPrimitive;`
[rustfmt] libcoap/src/types.rs#L36: libcoap/src/types.rs#L36
Should be `use num_traits::FromPrimitive;`
[rustfmt] libcoap/src/types.rs#L37: libcoap/src/types.rs#L37
Should be `#[cfg(feature = "url")]`
[rustfmt] libcoap/src/types.rs#L38: libcoap/src/types.rs#L38
Should be `use url::Url;`
[rustfmt] libcoap/tests/common/dtls.rs#L10: libcoap/tests/common/dtls.rs#L10
Should be ` session::{CoapClientSession, CoapSessionCommon},`
[rustfmt] libcoap/tests/common/dtls.rs#L10: libcoap/tests/common/dtls.rs#L10
Should be ` session::{CoapClientSession, CoapSessionCommon},`
[rustfmt] libcoap/tests/common/dtls.rs#L10: libcoap/tests/common/dtls.rs#L10
Should be ` session::{CoapClientSession, CoapSessionCommon},`
[rustfmt] libcoap/tests/common/dtls.rs#L10: libcoap/tests/common/dtls.rs#L10
Should be ` session::{CoapClientSession, CoapSessionCommon},`
[rustfmt] libcoap/tests/common/dtls.rs#L10: libcoap/tests/common/dtls.rs#L10
Should be ` session::{CoapClientSession, CoapSessionCommon},`
[rustfmt] libcoap-sys/build/bindings.rs#L6: libcoap-sys/build/bindings.rs#L6
Should be `use crate::metadata::{DtlsBackend, LibcoapDefineInfo, LibcoapFeature};`
[rustfmt] libcoap-sys/build/build_system/esp_idf.rs#L1: libcoap-sys/build/build_system/esp_idf.rs#L1
Should be `use std::{env, fs::File, io::Write, iter::once, path::PathBuf};`
[rustfmt] libcoap-sys/build/build_system/esp_idf.rs#L10: libcoap-sys/build/build_system/esp_idf.rs#L10
Should be ` metadata::{DtlsBackend, LibcoapFeature},`
[rustfmt] libcoap-sys/build/build_system/manual.rs#L1: libcoap-sys/build/build_system/manual.rs#L1
Should be `use std::{cell::RefCell, env, env::VarError, path::PathBuf};`
[rustfmt] libcoap-sys/build/build_system/manual.rs#L8: libcoap-sys/build/build_system/manual.rs#L8
Should be ` bindings::{generate_libcoap_bindings, LibcoapDefineParser},`
[rustfmt] libcoap-sys/build/build_system/manual.rs#L10: libcoap-sys/build/build_system/manual.rs#L10
Should be ` metadata::{DtlsBackend, LibcoapDefineInfo, LibcoapFeature},`
[rustfmt] libcoap-sys/build/build_system/vendored.rs#L15: libcoap-sys/build/build_system/vendored.rs#L15
Should be ` bindings::{generate_libcoap_bindings, LibcoapDefineParser},`
[rustfmt] libcoap-sys/build/build_system/vendored.rs#L17: libcoap-sys/build/build_system/vendored.rs#L17
Should be ` metadata::{DtlsBackend, LibcoapDefineInfo, LibcoapFeature},`
[rustfmt] libcoap-sys/build/main.rs#L8: libcoap-sys/build/main.rs#L8
Should be ` build_system::{`
[rustfmt] libcoap-sys/build/main.rs#L9: libcoap-sys/build/main.rs#L9
Should be ` esp_idf::EspIdfBuildSystem, manual::ManualBuildSystem, pkgconfig::PkgConfigBuildSystem,`
[rustfmt] libcoap-sys/build/main.rs#L10: libcoap-sys/build/main.rs#L10
Should be ` vendored::VendoredBuildSystem, BuildSystem,`
[rustfmt] libcoap-sys/src/lib.rs#L305: libcoap-sys/src/lib.rs#L305
Should be `use c_stdlib::{epoll_event, fd_set, memcmp, sa_family_t, sockaddr, sockaddr_in, sockaddr_in6, socklen_t, time_t};`
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, gnutls, msrv)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, gnutls, nightly)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, gnutls, msrv)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, tinydtls, msrv)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, mbedtls, msrv)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, mbedtls, msrv)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, gnutls, stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, tinydtls, stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, gnutls, nightly)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, mbedtls, stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, mbedtls, stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, mbedtls, nightly)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, gnutls, stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, tinydtls, nightly)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, tinydtls, msrv)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, openssl, msrv)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, mbedtls, nightly)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, openssl, msrv)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, tinydtls, nightly)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, tinydtls, stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
docs
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, openssl, stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-rs, openssl, nightly)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, openssl, nightly)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (libcoap-sys, openssl, stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
docs
3.32 MB
test-coverage-data-libcoap-rs-gnutls Expired
62.1 MB
test-coverage-data-libcoap-rs-mbedtls Expired
67.8 MB
test-coverage-data-libcoap-rs-openssl Expired
189 MB
test-coverage-data-libcoap-rs-tinydtls Expired
56.6 MB
test-coverage-data-libcoap-sys-gnutls Expired
4.25 MB
test-coverage-data-libcoap-sys-mbedtls Expired
5.43 MB
test-coverage-data-libcoap-sys-openssl Expired
12 MB
test-coverage-data-libcoap-sys-tinydtls Expired
4.75 MB