Преглед на файлове

Add a whitelist of included files in packaging

Alex Crichton преди 6 години
родител
ревизия
352f93e2a9
променени са 1 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. 10 0
      Cargo.toml

+ 10 - 0
Cargo.toml

@@ -11,6 +11,16 @@ description = """
 Compiler intrinsics used by the Rust compiler. Also available for other targets
 if necessary!
 """
+include = [
+  '/Cargo.toml',
+  '/build.rs',
+  '/src/*',
+  '/examples/*',
+  '/LICENSE.txt',
+  '/README.md',
+  '/compiler-rt/*',
+  '/libm/src/math/*',
+]
 links = 'compiler-rt'
 
 [lib]