Skip to content

Commit d188da7

Browse files
dvdplmniklasad1
andauthored
Add license headers where missing and update year (#439)
* Add license headers where missing and update year * Update examples/http.rs Co-authored-by: Niklas Adolfsson <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>
1 parent 68c3906 commit d188da7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+733
-31
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2019 Parity Technologies Limited
1+
Copyright (c) 2021 Parity Technologies Limited
22

33
Permission is hereby granted, free of charge, to any
44
person obtaining a copy of this software and associated

examples/http.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

examples/proc_macro.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

examples/weather.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

examples/ws.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

examples/ws_sub_with_params.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

examples/ws_subscription.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

http-client/src/client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

http-client/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

http-client/src/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

http-server/src/access_control/cors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

http-server/src/access_control/hosts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

http-server/src/access_control/matcher.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

http-server/src/access_control/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

http-server/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

http-server/src/response.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

http-server/src/server.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

http-server/src/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

jsonrpsee/src/lib.rs

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
2+
//
3+
// Permission is hereby granted, free of charge, to any
4+
// person obtaining a copy of this software and associated
5+
// documentation files (the "Software"), to deal in the
6+
// Software without restriction, including without
7+
// limitation the rights to use, copy, modify, merge,
8+
// publish, distribute, sublicense, and/or sell copies of
9+
// the Software, and to permit persons to whom the Software
10+
// is furnished to do so, subject to the following
11+
// conditions:
12+
//
13+
// The above copyright notice and this permission notice
14+
// shall be included in all copies or substantial portions
15+
// of the Software.
16+
//
17+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18+
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19+
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21+
// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22+
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24+
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25+
// DEALINGS IN THE SOFTWARE.
26+
127
//! jsonrpsee wrapper crate.
228
329
/// JSON RPC HTTP client.

proc-macros/src/attributes.rs

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
2+
//
3+
// Permission is hereby granted, free of charge, to any
4+
// person obtaining a copy of this software and associated
5+
// documentation files (the "Software"), to deal in the
6+
// Software without restriction, including without
7+
// limitation the rights to use, copy, modify, merge,
8+
// publish, distribute, sublicense, and/or sell copies of
9+
// the Software, and to permit persons to whom the Software
10+
// is furnished to do so, subject to the following
11+
// conditions:
12+
//
13+
// The above copyright notice and this permission notice
14+
// shall be included in all copies or substantial portions
15+
// of the Software.
16+
//
17+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18+
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19+
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21+
// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22+
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24+
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25+
// DEALINGS IN THE SOFTWARE.
26+
127
use bae::FromAttributes;
228

329
/// Input for the `#[rpc(...)]` attribute macro.

proc-macros/src/helpers.rs

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
2+
//
3+
// Permission is hereby granted, free of charge, to any
4+
// person obtaining a copy of this software and associated
5+
// documentation files (the "Software"), to deal in the
6+
// Software without restriction, including without
7+
// limitation the rights to use, copy, modify, merge,
8+
// publish, distribute, sublicense, and/or sell copies of
9+
// the Software, and to permit persons to whom the Software
10+
// is furnished to do so, subject to the following
11+
// conditions:
12+
//
13+
// The above copyright notice and this permission notice
14+
// shall be included in all copies or substantial portions
15+
// of the Software.
16+
//
17+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18+
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19+
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21+
// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22+
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24+
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25+
// DEALINGS IN THE SOFTWARE.
26+
127
use proc_macro2::Span;
228
use proc_macro_crate::{crate_name, FoundCrate};
329
use quote::quote;

proc-macros/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Parity Technologies (UK) Ltd.
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
22
//
33
// Permission is hereby granted, free of charge, to any
44
// person obtaining a copy of this software and associated

proc-macros/src/lifetimes.rs

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
2+
//
3+
// Permission is hereby granted, free of charge, to any
4+
// person obtaining a copy of this software and associated
5+
// documentation files (the "Software"), to deal in the
6+
// Software without restriction, including without
7+
// limitation the rights to use, copy, modify, merge,
8+
// publish, distribute, sublicense, and/or sell copies of
9+
// the Software, and to permit persons to whom the Software
10+
// is furnished to do so, subject to the following
11+
// conditions:
12+
//
13+
// The above copyright notice and this permission notice
14+
// shall be included in all copies or substantial portions
15+
// of the Software.
16+
//
17+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18+
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19+
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21+
// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22+
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24+
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25+
// DEALINGS IN THE SOFTWARE.
26+
127
use proc_macro2::Span;
228
use syn::spanned::Spanned;
329
use syn::{Lifetime, Path, Type};

proc-macros/src/render_client.rs

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
2+
//
3+
// Permission is hereby granted, free of charge, to any
4+
// person obtaining a copy of this software and associated
5+
// documentation files (the "Software"), to deal in the
6+
// Software without restriction, including without
7+
// limitation the rights to use, copy, modify, merge,
8+
// publish, distribute, sublicense, and/or sell copies of
9+
// the Software, and to permit persons to whom the Software
10+
// is furnished to do so, subject to the following
11+
// conditions:
12+
//
13+
// The above copyright notice and this permission notice
14+
// shall be included in all copies or substantial portions
15+
// of the Software.
16+
//
17+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18+
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19+
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21+
// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22+
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24+
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25+
// DEALINGS IN THE SOFTWARE.
26+
127
use crate::rpc_macro::{RpcMethod, RpcSubscription};
228
use crate::RpcDescription;
329

proc-macros/src/render_server.rs

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
2+
//
3+
// Permission is hereby granted, free of charge, to any
4+
// person obtaining a copy of this software and associated
5+
// documentation files (the "Software"), to deal in the
6+
// Software without restriction, including without
7+
// limitation the rights to use, copy, modify, merge,
8+
// publish, distribute, sublicense, and/or sell copies of
9+
// the Software, and to permit persons to whom the Software
10+
// is furnished to do so, subject to the following
11+
// conditions:
12+
//
13+
// The above copyright notice and this permission notice
14+
// shall be included in all copies or substantial portions
15+
// of the Software.
16+
//
17+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18+
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19+
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21+
// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22+
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24+
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25+
// DEALINGS IN THE SOFTWARE.
26+
127
use super::lifetimes::replace_lifetimes;
228
use super::RpcDescription;
329
use proc_macro2::{Span, TokenStream as TokenStream2};

proc-macros/src/respan.rs

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
2+
//
3+
// Permission is hereby granted, free of charge, to any
4+
// person obtaining a copy of this software and associated
5+
// documentation files (the "Software"), to deal in the
6+
// Software without restriction, including without
7+
// limitation the rights to use, copy, modify, merge,
8+
// publish, distribute, sublicense, and/or sell copies of
9+
// the Software, and to permit persons to whom the Software
10+
// is furnished to do so, subject to the following
11+
// conditions:
12+
//
13+
// The above copyright notice and this permission notice
14+
// shall be included in all copies or substantial portions
15+
// of the Software.
16+
//
17+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18+
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19+
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21+
// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22+
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24+
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25+
// DEALINGS IN THE SOFTWARE.
26+
127
//! Module with a trait extension capable of re-spanning `syn` errors.
228
329
use quote::ToTokens;

proc-macros/src/rpc_macro.rs

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
2+
//
3+
// Permission is hereby granted, free of charge, to any
4+
// person obtaining a copy of this software and associated
5+
// documentation files (the "Software"), to deal in the
6+
// Software without restriction, including without
7+
// limitation the rights to use, copy, modify, merge,
8+
// publish, distribute, sublicense, and/or sell copies of
9+
// the Software, and to permit persons to whom the Software
10+
// is furnished to do so, subject to the following
11+
// conditions:
12+
//
13+
// The above copyright notice and this permission notice
14+
// shall be included in all copies or substantial portions
15+
// of the Software.
16+
//
17+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18+
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19+
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21+
// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22+
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24+
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25+
// DEALINGS IN THE SOFTWARE.
26+
127
//! Declaration of the JSON RPC generator procedural macros.
228
329
use crate::{attributes, respan::Respan};

test-utils/src/helpers.rs

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
2+
//
3+
// Permission is hereby granted, free of charge, to any
4+
// person obtaining a copy of this software and associated
5+
// documentation files (the "Software"), to deal in the
6+
// Software without restriction, including without
7+
// limitation the rights to use, copy, modify, merge,
8+
// publish, distribute, sublicense, and/or sell copies of
9+
// the Software, and to permit persons to whom the Software
10+
// is furnished to do so, subject to the following
11+
// conditions:
12+
//
13+
// The above copyright notice and this permission notice
14+
// shall be included in all copies or substantial portions
15+
// of the Software.
16+
//
17+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18+
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19+
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21+
// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22+
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24+
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25+
// DEALINGS IN THE SOFTWARE.
26+
127
use crate::types::{Body, HttpResponse, Id, Uri};
228
use hyper::service::{make_service_fn, service_fn};
329
use hyper::{Request, Response, Server};

0 commit comments

Comments
 (0)