commit 2ca8fcb892d6e0452160ed9a19fe7cb4c3741b40
parent 6be75bd61d72636a1c23b6fd9866d33a35433a73
Author: Nick Mathewson <nickm@torproject.org>
Date: Fri, 27 Oct 2017 09:54:54 -0400
Add missing copyright/license statements on all .rs files
(Yes, I have Chelsea's permission.)
Diffstat:
10 files changed, 30 insertions(+), 0 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.
//!