diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-27 09:54:54 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-10-27 10:02:08 -0400 |
commit | 2ca8fcb892d6e0452160ed9a19fe7cb4c3741b40 (patch) | |
tree | 276c1a4a6ec7e60e828ae310589172d300ea652a | |
parent | 6be75bd61d72636a1c23b6fd9866d33a35433a73 (diff) | |
download | tor-2ca8fcb892d6e0452160ed9a19fe7cb4c3741b40.tar.gz tor-2ca8fcb892d6e0452160ed9a19fe7cb4c3741b40.zip |
Add missing copyright/license statements on all .rs files
(Yes, I have Chelsea's permission.)
-rw-r--r-- | src/rust/external/external.rs | 3 | ||||
-rw-r--r-- | src/rust/protover/ffi.rs | 3 | ||||
-rw-r--r-- | src/rust/protover/protover.rs | 3 | ||||
-rw-r--r-- | src/rust/protover/tests/protover.rs | 3 | ||||
-rw-r--r-- | src/rust/smartlist/lib.rs | 3 | ||||
-rw-r--r-- | src/rust/smartlist/smartlist.rs | 3 | ||||
-rw-r--r-- | src/rust/tor_allocate/lib.rs | 3 | ||||
-rw-r--r-- | src/rust/tor_allocate/tor_allocate.rs | 3 | ||||
-rw-r--r-- | src/rust/tor_util/ffi.rs | 3 | ||||
-rw-r--r-- | src/rust/tor_util/lib.rs | 3 |
10 files changed, 30 insertions, 0 deletions
diff --git a/src/rust/external/external.rs b/src/rust/external/external.rs index 09d80cb2ba..b9e17f021d 100644 --- a/src/rust/external/external.rs +++ b/src/rust/external/external.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2016-2017, The Tor Project, Inc. */ +// See LICENSE for licensing information */ + use libc::{c_char, c_int}; use std::ffi::CString; diff --git a/src/rust/protover/ffi.rs b/src/rust/protover/ffi.rs index f897c98083..cf2e9fd783 100644 --- a/src/rust/protover/ffi.rs +++ b/src/rust/protover/ffi.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2016-2017, The Tor Project, Inc. */ +// See LICENSE for licensing information */ + //! FFI functions, only to be called from C. //! //! Equivalent C versions of this api are in `src/or/protover.c` diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs index d75da61aa8..11e9d0079e 100644 --- a/src/rust/protover/protover.rs +++ b/src/rust/protover/protover.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2016-2017, The Tor Project, Inc. */ +// See LICENSE for licensing information */ + use external::c_tor_version_as_new_as; use std::str::FromStr; diff --git a/src/rust/protover/tests/protover.rs b/src/rust/protover/tests/protover.rs index af7633a484..f4e394b3e2 100644 --- a/src/rust/protover/tests/protover.rs +++ b/src/rust/protover/tests/protover.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2016-2017, The Tor Project, Inc. */ +// See LICENSE for licensing information */ + extern crate protover; #[test] diff --git a/src/rust/smartlist/lib.rs b/src/rust/smartlist/lib.rs index 71d89a3b87..14a8148315 100644 --- a/src/rust/smartlist/lib.rs +++ b/src/rust/smartlist/lib.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2016-2017, The Tor Project, Inc. */ +// See LICENSE for licensing information */ + extern crate libc; mod smartlist; diff --git a/src/rust/smartlist/smartlist.rs b/src/rust/smartlist/smartlist.rs index 9f5e14f1ad..ec5d7a57f5 100644 --- a/src/rust/smartlist/smartlist.rs +++ b/src/rust/smartlist/smartlist.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2016-2017, The Tor Project, Inc. */ +// See LICENSE for licensing information */ + use std::slice; use libc::{c_char, c_int}; use std::ffi::CStr; diff --git a/src/rust/tor_allocate/lib.rs b/src/rust/tor_allocate/lib.rs index 81afd095f9..937a5dcf63 100644 --- a/src/rust/tor_allocate/lib.rs +++ b/src/rust/tor_allocate/lib.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2016-2017, The Tor Project, Inc. */ +// See LICENSE for licensing information */ + //! Allocation helper functions that allow data to be allocated in Rust //! using tor's specified allocator. In doing so, this can be later freed //! from C. diff --git a/src/rust/tor_allocate/tor_allocate.rs b/src/rust/tor_allocate/tor_allocate.rs index 663600ec5c..8a6fabe9cb 100644 --- a/src/rust/tor_allocate/tor_allocate.rs +++ b/src/rust/tor_allocate/tor_allocate.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2016-2017, The Tor Project, Inc. */ +// See LICENSE for licensing information */ + use libc::{c_char, c_void}; use std::{ptr, slice, mem}; diff --git a/src/rust/tor_util/ffi.rs b/src/rust/tor_util/ffi.rs index 214727a190..76c6e6d394 100644 --- a/src/rust/tor_util/ffi.rs +++ b/src/rust/tor_util/ffi.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2016-2017, The Tor Project, Inc. */ +// See LICENSE for licensing information */ + //! FFI functions to announce Rust support during tor startup, only to be //! called from C. //! diff --git a/src/rust/tor_util/lib.rs b/src/rust/tor_util/lib.rs index 9c863e39bd..42fa9d5ad0 100644 --- a/src/rust/tor_util/lib.rs +++ b/src/rust/tor_util/lib.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2016-2017, The Tor Project, Inc. */ +// See LICENSE for licensing information */ + //! Small module to announce Rust support during startup for demonstration //! purposes. //! |