Browse Source

Add missing copyright/license statements on all .rs files

(Yes, I have Chelsea's permission.)
Nick Mathewson 6 years ago
parent
commit
2ca8fcb892

+ 3 - 0
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;
 

+ 3 - 0
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`

+ 3 - 0
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;

+ 3 - 0
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]

+ 3 - 0
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;

+ 3 - 0
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;

+ 3 - 0
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.

+ 3 - 0
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};
 

+ 3 - 0
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.
 //!

+ 3 - 0
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.
 //!