[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add missing copyright/license statements on all .rs files



commit 2ca8fcb892d6e0452160ed9a19fe7cb4c3741b40
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Oct 27 09:54:54 2017 -0400

    Add missing copyright/license statements on all .rs files
    
    (Yes, I have Chelsea's permission.)
---
 src/rust/external/external.rs         | 3 +++
 src/rust/protover/ffi.rs              | 3 +++
 src/rust/protover/protover.rs         | 3 +++
 src/rust/protover/tests/protover.rs   | 3 +++
 src/rust/smartlist/lib.rs             | 3 +++
 src/rust/smartlist/smartlist.rs       | 3 +++
 src/rust/tor_allocate/lib.rs          | 3 +++
 src/rust/tor_allocate/tor_allocate.rs | 3 +++
 src/rust/tor_util/ffi.rs              | 3 +++
 src/rust/tor_util/lib.rs              | 3 +++
 10 files changed, 30 insertions(+)

diff --git a/src/rust/external/external.rs b/src/rust/external/external.rs
index 09d80cb2b..b9e17f021 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 f897c9808..cf2e9fd78 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 d75da61aa..11e9d0079 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 af7633a48..f4e394b3e 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 71d89a3b8..14a814831 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 9f5e14f1a..ec5d7a57f 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 81afd095f..937a5dcf6 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 663600ec5..8a6fabe9c 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 214727a19..76c6e6d39 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 9c863e39b..42fa9d5ad 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.
 //!



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits