浏览代码

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]