From 87c14c129b2e2410bb9f3f5d8fab66237d08f012 Mon Sep 17 00:00:00 2001 From: Hugo Hakim Damer Date: Tue, 23 May 2023 22:04:58 +0200 Subject: [PATCH 1/2] chore(sys|lib): update and unify copyright notices --- Cargo.toml | 7 ++++++- LICENSE-BSD-2-CLAUSE | 4 ++-- libcoap-sys/Cargo.toml | 5 +++-- libcoap-sys/build.rs | 4 +++- libcoap-sys/src/lib.rs | 5 ++++- libcoap-sys/src/wrapper.h | 5 ++++- libcoap/Cargo.toml | 5 +++-- libcoap/src/context.rs | 5 ++++- libcoap/src/crypto.rs | 5 ++++- libcoap/src/error.rs | 6 +++++- libcoap/src/event.rs | 6 +++++- libcoap/src/lib.rs | 5 ++++- libcoap/src/mem.rs | 5 ++++- libcoap/src/message/mod.rs | 5 ++++- libcoap/src/message/request.rs | 9 ++++++--- libcoap/src/message/response.rs | 9 +++++++++ libcoap/src/protocol.rs | 5 ++++- libcoap/src/resource.rs | 5 ++++- libcoap/src/session/client.rs | 4 +++- libcoap/src/session/mod.rs | 4 +++- libcoap/src/session/server.rs | 4 +++- libcoap/src/transport/dtls.rs | 10 +++++----- libcoap/src/transport/mod.rs | 5 ++++- libcoap/src/transport/tcp.rs | 5 ++++- libcoap/src/transport/tls.rs | 5 ++++- libcoap/src/transport/udp.rs | 6 ++++-- libcoap/src/types.rs | 5 ++++- libcoap/tests/common/mod.rs | 9 +++++++++ libcoap/tests/dtls_client_server_test.rs | 9 +++++++++ libcoap/tests/udp_client_server_test.rs | 9 +++++++++ 30 files changed, 139 insertions(+), 36 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1d69c33..8c73ccd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,9 @@ -# SPDX-License-Identifier: EPL-1.0 OR BSD-3-CLAUSE +# SPDX-License-Identifier: BSD-2-Clause +# Cargo.toml for the libcoap-rs repository. +# This file is part of the libcoap-rs library, see the README and LICENSE files for +# more information and terms of use. +# Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. +# See the README as well as the LICENSE file for more information. [workspace] members = [ "libcoap", diff --git a/LICENSE-BSD-2-CLAUSE b/LICENSE-BSD-2-CLAUSE index 6995375..a75fcae 100644 --- a/LICENSE-BSD-2-CLAUSE +++ b/LICENSE-BSD-2-CLAUSE @@ -1,6 +1,6 @@ BSD 2-Clause License -Copyright (c) 2021 The NAMIB Project Developers +Copyright © 2021-2023 The NAMIB Project Developers All rights reserved. Redistribution and use in source and binary forms, with or without @@ -22,4 +22,4 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/libcoap-sys/Cargo.toml b/libcoap-sys/Cargo.toml index 89ed80c..af89691 100644 --- a/libcoap-sys/Cargo.toml +++ b/libcoap-sys/Cargo.toml @@ -1,7 +1,8 @@ # SPDX-License-Identifier: BSD-2-Clause # Cargo.toml for libcoap-sys -# Copyright (c) 2021-2022 The NAMIB Project Developers, all rights reserved. -# See the README as well as the LICENSE file for more information. +# This file is part of the libcoap-sys crate, see the README and LICENSE files for +# more information and terms of use. +# Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. [package] name = "libcoap-sys" diff --git a/libcoap-sys/build.rs b/libcoap-sys/build.rs index c40a429..4ec61f5 100644 --- a/libcoap-sys/build.rs +++ b/libcoap-sys/build.rs @@ -1,7 +1,9 @@ // SPDX-License-Identifier: BSD-2-CLAUSE /* * build.rs - build script for libcoap Rust bindings. - * Copyright (c) 2021 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-sys crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ diff --git a/libcoap-sys/src/lib.rs b/libcoap-sys/src/lib.rs index 152d0e0..9409cda 100644 --- a/libcoap-sys/src/lib.rs +++ b/libcoap-sys/src/lib.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * lib.rs - Main library entry point for raw libcoap bindings. - * Copyright (c) 2021-2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-sys crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + //! Auto-generated unsafe bindings to [libcoap](https://github.com/obgm/libcoap), generated using //! [bindgen](https://crates.io/crates/bindgen). //! diff --git a/libcoap-sys/src/wrapper.h b/libcoap-sys/src/wrapper.h index 8375fdf..c566191 100644 --- a/libcoap-sys/src/wrapper.h +++ b/libcoap-sys/src/wrapper.h @@ -1,7 +1,10 @@ // SPDX-License-Identifier: BSD-2-Clause /* * wrapper.h - wrapper header to generate libcoap Rust bindings using bindgen - * Copyright (c) 2021 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-sys crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + #include diff --git a/libcoap/Cargo.toml b/libcoap/Cargo.toml index d189f15..bb296c4 100644 --- a/libcoap/Cargo.toml +++ b/libcoap/Cargo.toml @@ -1,7 +1,8 @@ # SPDX-License-Identifier: BSD-2-Clause # Cargo.toml for libcoap -# Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. -# See the README as well as the LICENSE file for more information. +# This file is part of the libcoap-rs crate, see the README and LICENSE files for +# more information and terms of use. +# Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. [package] name = "libcoap-rs" diff --git a/libcoap/src/context.rs b/libcoap/src/context.rs index 78cc814..d54b96a 100644 --- a/libcoap/src/context.rs +++ b/libcoap/src/context.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * context.rs - CoAP context related code. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + //! Module containing context-internal types and traits. use std::{any::Any, ffi::c_void, fmt::Debug, marker::PhantomData, net::SocketAddr, ops::Sub, time::Duration}; diff --git a/libcoap/src/crypto.rs b/libcoap/src/crypto.rs index 9b88538..579f075 100644 --- a/libcoap/src/crypto.rs +++ b/libcoap/src/crypto.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * crypto.rs - CoAP cryptography provider interfaces and types. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + //! Cryptography provider interfaces and types use std::{ diff --git a/libcoap/src/error.rs b/libcoap/src/error.rs index b8f6993..4379089 100644 --- a/libcoap/src/error.rs +++ b/libcoap/src/error.rs @@ -1,10 +1,14 @@ // SPDX-License-Identifier: BSD-2-Clause /* * error.rs - CoAP error types. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + //! Error types + use std::string::FromUtf8Error; use thiserror::Error; diff --git a/libcoap/src/event.rs b/libcoap/src/event.rs index b9576e9..5ea9d6d 100644 --- a/libcoap/src/event.rs +++ b/libcoap/src/event.rs @@ -1,10 +1,14 @@ // SPDX-License-Identifier: BSD-2-Clause /* * event.rs - Event handling traits and logic for the libcoap Rust Wrapper. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + //! Event handling-related code + use std::fmt::Debug; use libcoap_sys::{coap_event_t, coap_session_get_context, coap_session_t}; diff --git a/libcoap/src/lib.rs b/libcoap/src/lib.rs index 5731227..36d050e 100644 --- a/libcoap/src/lib.rs +++ b/libcoap/src/lib.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * lib.rs - Main library entry point for safe libcoap bindings. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + #![cfg_attr(feature = "nightly", feature(trait_upcasting))] //! A safe wrapper around the libcoap C library. diff --git a/libcoap/src/mem.rs b/libcoap/src/mem.rs index 34cc78e..867cf9f 100644 --- a/libcoap/src/mem.rs +++ b/libcoap/src/mem.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * mem.rs - Memory handling helper structs and traits for the libcoap Rust Wrapper. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + //! Code related to memory handling, especially for passing objects through FFI use std::cell::{Ref, RefCell, RefMut}; diff --git a/libcoap/src/message/mod.rs b/libcoap/src/message/mod.rs index a0c3261..c936b61 100644 --- a/libcoap/src/message/mod.rs +++ b/libcoap/src/message/mod.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * message.rs - Types related to CoAP messages. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + //! Types related to message handling, parsing and creation. //! //! The base unit that is transmitted between a CoAP client and a CoAP server is called a CoAP diff --git a/libcoap/src/message/request.rs b/libcoap/src/message/request.rs index 92598eb..7548fbf 100644 --- a/libcoap/src/message/request.rs +++ b/libcoap/src/message/request.rs @@ -1,10 +1,13 @@ -use std::fmt::{Display, Formatter}; // SPDX-License-Identifier: BSD-2-Clause /* - * request.rs - Types wrapping messages into requests and responses. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * request.rs - Types wrapping messages into requests. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + +use std::fmt::{Display, Formatter}; use std::str::FromStr; use url::Url; diff --git a/libcoap/src/message/response.rs b/libcoap/src/message/response.rs index f7bb1bb..5a9c388 100644 --- a/libcoap/src/message/response.rs +++ b/libcoap/src/message/response.rs @@ -1,3 +1,12 @@ +// SPDX-License-Identifier: BSD-2-Clause +/* + * response.rs - Types wrapping messages into responses. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. + * See the README as well as the LICENSE file for more information. + */ + use crate::error::{MessageConversionError, MessageTypeError, OptionValueError}; use crate::message::{CoapMessage, CoapMessageCommon, CoapOption}; use crate::protocol::{ diff --git a/libcoap/src/protocol.rs b/libcoap/src/protocol.rs index 2521f63..7b66141 100644 --- a/libcoap/src/protocol.rs +++ b/libcoap/src/protocol.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * protocol.rs - Types representing CoAP protocol values. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + //! Various types that are specified and defined in the CoAP standard and its extensions. use std::{ diff --git a/libcoap/src/resource.rs b/libcoap/src/resource.rs index e9626b9..3173344 100644 --- a/libcoap/src/resource.rs +++ b/libcoap/src/resource.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * resource.rs - Types relating to CoAP resource management. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + //! Resource and resource handler descriptions use std::{ diff --git a/libcoap/src/session/client.rs b/libcoap/src/session/client.rs index 844ac05..2d023c6 100644 --- a/libcoap/src/session/client.rs +++ b/libcoap/src/session/client.rs @@ -1,7 +1,9 @@ // SPDX-License-Identifier: BSD-2-Clause /* * session/client.rs - Types relating to client-side CoAP sessions. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ diff --git a/libcoap/src/session/mod.rs b/libcoap/src/session/mod.rs index 7881289..8cd8617 100644 --- a/libcoap/src/session/mod.rs +++ b/libcoap/src/session/mod.rs @@ -1,7 +1,9 @@ // SPDX-License-Identifier: BSD-2-Clause /* * session/mod.rs - Types relating to generic CoAP sessions. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ diff --git a/libcoap/src/session/server.rs b/libcoap/src/session/server.rs index 91e4bc6..0cbb3f6 100644 --- a/libcoap/src/session/server.rs +++ b/libcoap/src/session/server.rs @@ -1,7 +1,9 @@ // SPDX-License-Identifier: BSD-2-Clause /* * session/server.rs - Types relating to client-side CoAP sessions. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ diff --git a/libcoap/src/transport/dtls.rs b/libcoap/src/transport/dtls.rs index 2e7e5f5..12cd6a6 100644 --- a/libcoap/src/transport/dtls.rs +++ b/libcoap/src/transport/dtls.rs @@ -1,17 +1,17 @@ // SPDX-License-Identifier: BSD-2-Clause /* * transport/dtls.rs - transport-specific code for DTLS. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + use std::net::SocketAddr; use libcoap_sys::{coap_endpoint_t, coap_free_endpoint, coap_new_endpoint, coap_proto_t::COAP_PROTO_DTLS}; -use crate::{ - context::CoapContext, error::EndpointCreationError, transport::EndpointCommon, - types::CoapAddress, -}; +use crate::{context::CoapContext, error::EndpointCreationError, transport::EndpointCommon, types::CoapAddress}; #[derive(Debug)] pub struct CoapDtlsEndpoint { diff --git a/libcoap/src/transport/mod.rs b/libcoap/src/transport/mod.rs index 0879255..90d5ffc 100644 --- a/libcoap/src/transport/mod.rs +++ b/libcoap/src/transport/mod.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * transport/mod.rs - Module file for CoAP transports. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + use std::os::raw::c_uint; use libcoap_sys::{coap_endpoint_set_default_mtu, coap_endpoint_t}; diff --git a/libcoap/src/transport/tcp.rs b/libcoap/src/transport/tcp.rs index 01d9599..1a41cc2 100644 --- a/libcoap/src/transport/tcp.rs +++ b/libcoap/src/transport/tcp.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * transport/dtls.rs - transport-specific code for TCP. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + /// TODO #[allow(dead_code)] #[cfg(feature = "tcp")] diff --git a/libcoap/src/transport/tls.rs b/libcoap/src/transport/tls.rs index 2f0ad4b..00f8b0a 100644 --- a/libcoap/src/transport/tls.rs +++ b/libcoap/src/transport/tls.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * transport/dtls.rs - transport-specific code for TLS. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + /// TODO #[allow(dead_code)] #[cfg(feature = "tcp")] diff --git a/libcoap/src/transport/udp.rs b/libcoap/src/transport/udp.rs index b66e4c6..eaaf171 100644 --- a/libcoap/src/transport/udp.rs +++ b/libcoap/src/transport/udp.rs @@ -1,14 +1,16 @@ // SPDX-License-Identifier: BSD-2-Clause /* * transport/dtls.rs - transport-specific code for UDP. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + use std::net::SocketAddr; use libcoap_sys::{coap_endpoint_t, coap_free_endpoint, coap_new_endpoint, coap_proto_t::COAP_PROTO_UDP}; - use crate::{context::CoapContext, error::EndpointCreationError, transport::EndpointCommon, types::CoapAddress}; #[derive(Debug)] diff --git a/libcoap/src/types.rs b/libcoap/src/types.rs index febb54b..07641fa 100644 --- a/libcoap/src/types.rs +++ b/libcoap/src/types.rs @@ -1,9 +1,12 @@ // SPDX-License-Identifier: BSD-2-Clause /* * resource.rs - Types for converting between libcoap and Rust data structures. - * Copyright (c) 2022 The NAMIB Project Developers, all rights reserved. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. * See the README as well as the LICENSE file for more information. */ + //! Types required for conversion between libcoap C library abstractions and Rust types. use std::fmt::{Display, Formatter}; diff --git a/libcoap/tests/common/mod.rs b/libcoap/tests/common/mod.rs index 6699fb2..2bd52ac 100644 --- a/libcoap/tests/common/mod.rs +++ b/libcoap/tests/common/mod.rs @@ -1,3 +1,12 @@ +// SPDX-License-Identifier: BSD-2-Clause +/* + * tests/common/mod.rs - Common code for integration tests. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. + * See the README as well as the LICENSE file for more information. + */ + use libcoap_rs::message::{CoapMessageCommon, CoapRequest, CoapResponse}; use libcoap_rs::protocol::{CoapMessageCode, CoapMessageType, CoapRequestCode, CoapResponseCode}; use libcoap_rs::session::CoapSessionCommon; diff --git a/libcoap/tests/dtls_client_server_test.rs b/libcoap/tests/dtls_client_server_test.rs index 757ac9e..3d884cb 100644 --- a/libcoap/tests/dtls_client_server_test.rs +++ b/libcoap/tests/dtls_client_server_test.rs @@ -1,3 +1,12 @@ +// SPDX-License-Identifier: BSD-2-Clause +/* + * dtls_client_server_test.rs - Tests for DTLS clients+servers. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. + * See the README as well as the LICENSE file for more information. + */ + #![cfg(feature = "dtls")] use std::fmt::Debug; use std::sync::{Arc, Condvar, Mutex}; diff --git a/libcoap/tests/udp_client_server_test.rs b/libcoap/tests/udp_client_server_test.rs index dbe823b..2958a4c 100644 --- a/libcoap/tests/udp_client_server_test.rs +++ b/libcoap/tests/udp_client_server_test.rs @@ -1,3 +1,12 @@ +// SPDX-License-Identifier: BSD-2-Clause +/* + * dtls_client_server_test.rs - Tests for UDP clients+servers. + * This file is part of the libcoap-rs crate, see the README and LICENSE files for + * more information and terms of use. + * Copyright © 2021-2023 The NAMIB Project Developers, all rights reserved. + * See the README as well as the LICENSE file for more information. + */ + use libcoap_rs::session::CoapClientSession; use libcoap_rs::{ message::CoapMessageCommon, From 9e9f4911c94dde0a594ec942dd5daaa02f7c1931 Mon Sep 17 00:00:00 2001 From: Hugo Hakim Damer Date: Tue, 23 May 2023 22:14:20 +0200 Subject: [PATCH 2/2] chore(lib|sys): bump version number to 0.2.2 --- libcoap-sys/Cargo.toml | 2 +- libcoap/Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libcoap-sys/Cargo.toml b/libcoap-sys/Cargo.toml index af89691..9b968c6 100644 --- a/libcoap-sys/Cargo.toml +++ b/libcoap-sys/Cargo.toml @@ -7,7 +7,7 @@ [package] name = "libcoap-sys" description = "Raw bindings to the libcoap CoAP library." -version = "0.2.1+libcoap-4.3.1" +version = "0.2.2+libcoap-4.3.1" edition = "2021" license = "BSD-2-Clause AND BSD-1-Clause" links = "coap-3" diff --git a/libcoap/Cargo.toml b/libcoap/Cargo.toml index bb296c4..61e303a 100644 --- a/libcoap/Cargo.toml +++ b/libcoap/Cargo.toml @@ -7,7 +7,7 @@ [package] name = "libcoap-rs" description = "An idiomatic wrapper around the libcoap CoAP library for Rust." -version = "0.2.1" +version = "0.2.2" edition = "2021" license = "BSD-2-Clause" readme = "README.md" @@ -28,7 +28,7 @@ nightly = [] vendored = ["libcoap-sys/vendored"] [dependencies] -libcoap-sys = { version = "^0.2.1", path = "../libcoap-sys" } +libcoap-sys = { version = "^0.2.2", path = "../libcoap-sys" } libc = { version = "^0.2.95" } num-derive = { version = "^0.3.3" } num-traits = { version = "^0.2.14" }