Skip to content

Commit

Permalink
Add missing license headers
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Beyer <[email protected]>
  • Loading branch information
matthiasbeyer authored and TheNeikos committed Mar 20, 2024
1 parent b505e2d commit b4ea00c
Show file tree
Hide file tree
Showing 26 changed files with 156 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/bytes.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{binary::length_take, Bytes, Parser};

use super::MResult;
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/fixed_header.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{
binary::bits::bits,
error::{ErrMode, FromExternalError, InputError, ParserError},
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/integers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{combinator::trace, token::take_while, Bytes, Parser};

use super::MResult;
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/level.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::error::{ErrMode, ParserError};
use winnow::Bytes;

Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

#![deny(missing_debug_implementations)]

pub mod bytes;
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/auth.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::Bytes;

use crate::v5::{
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/connack.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{
error::{ErrMode, InputError, ParserError},
Bytes, Parser,
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/connect.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{
error::{ErrMode, InputError, ParserError},
Bytes, Parser,
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/disconnect.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{Bytes, Parser};

use crate::v5::{
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use self::{
auth::MAuth, connect::MConnect, disconnect::MDisconnect, pingreq::MPingreq,
pingresp::MPingresp, puback::MPuback, pubcomp::MPubcomp, publish::MPublish, pubrec::MPubrec,
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/pingreq.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{Bytes, Parser};

use crate::v5::MResult;
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/pingresp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::Bytes;

use crate::v5::MResult;
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/puback.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::Bytes;

use crate::v5::{
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/pubcomp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::Bytes;

use crate::v5::{
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/publish.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{
error::{ErrMode, ParserError},
stream::Stream,
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/pubrec.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::Bytes;

use crate::v5::{
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/pubrel.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::Bytes;

use crate::v5::{
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/suback.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{Bytes, Parser};

use crate::v5::{
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/subscribe.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{
binary::bits::bits,
combinator::repeat_till,
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/unsuback.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::Bytes;
use winnow::Parser;

Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/packets/unsubscribe.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{combinator::repeat_till, Bytes, Parser};

use crate::v5::{
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/properties.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{
error::{ErrMode, ParserError},
Bytes,
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/reason_code.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

macro_rules! make_combined_reason_code {
(pub enum $name:ident {
$($reason_code_name:ident = $reason_code_type:ty),* $(,)?
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/strings.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{
binary::length_take,
error::{ErrMode, FromExternalError},
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/util.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

macro_rules! speclink {
($anker:literal) => {
std::concat!(
Expand Down
6 changes: 6 additions & 0 deletions mqtt-format/src/v5/variable_header.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

use winnow::{Bytes, Parser};

use super::{integers::parse_u16, integers::parse_u32, MResult};
Expand Down

0 comments on commit b4ea00c

Please sign in to comment.