编译型编程语言Rust v1.15.0 发布

jopen 7年前
   <p style="text-align: center;"><strong><img alt="" src="https://simg.open-open.com/show/8f9dac32e915bcc0c014efc839a62544.png" /></strong></p>    <p> </p>    <p>Rust是一个由Mozilla主导开发的通用、编译型编程语言。它的设计准则为“安全,并发,实用”,支持函数式,并发式,过程式以及面向对象的编程风格。Rust 的设计目标之一,是要使设计大型的互联网客户端和服务器的任务变得更容易。因此更加强调安全性、内存配置、以及并发处理等方面的特性。在性能上,具有额外安全保证的代码会比 C++ 慢一些,但是如果以 C++ 也手工提供保证的情况下,则两者性能上是相似的。</p>    <p> </p>    <h2>更新日志</h2>    <ul>     <li>Basic procedural macros allowing custom <code>#[derive]</code>, aka "macros 1.1", are stable. This allows popular code-generating crates like Serde and Diesel to work ergonomically. <a href="/misc/goto?guid=4958998910110693149">RFC 1681</a>.</li>     <li><a href="/misc/goto?guid=4958998910198748078">Tuple structs may be empty. Unary and empty tuple structs may be instantiated with curly braces</a>. Part of <a href="/misc/goto?guid=4958998910302950331">RFC 1506</a>.</li>     <li><a href="/misc/goto?guid=4958998910407157824">A number of minor changes to name resolution have been activated</a>. They add up to more consistent semantics, allowing for future evolution of Rust macros. Specified in <a href="/misc/goto?guid=4958998910510676024">RFC 1560</a>, see its section on <a href="/misc/goto?guid=4958998910616742945">"changes"</a> for details of what is different. The breaking changes here have been transitioned through the <a href="/misc/goto?guid=4958998910720604304"><code>legacy_imports</code></a> lint since 1.14, with no known regressions.</li>     <li><a href="/misc/goto?guid=4958998910834065340">In <code>macro_rules</code>, <code>path</code> fragments can now be parsed as type parameter bounds</a></li>     <li><a href="/misc/goto?guid=4958998910934723377"><code>?Sized</code> can be used in <code>where</code> clauses</a></li>     <li><a href="/misc/goto?guid=4958998911035316554">There is now a limit on the size of monomorphized types and it can be modified with the <code>#![type_size_limit]</code> crate attribute, similarly to the <code>#![recursion_limit]</code> attribute</a></li>     <li><a href="/misc/goto?guid=4958998911141332672">On Windows, the compiler will apply dllimport attributes when linking to extern functions</a>. Additional attributes and flags can control which library kind is linked and its name. <a href="/misc/goto?guid=4958998911246375014">RFC 1717</a>.</li>     <li><a href="/misc/goto?guid=4958998911355728917">Rust-ABI symbols are no longer exported from cdylibs</a></li>     <li><a href="/misc/goto?guid=4958998911451095172">The <code>--test</code> flag works with procedural macro crates</a></li>     <li><a href="/misc/goto?guid=4958998911555530505">Fix <code>extern "aapcs" fn</code> ABI</a></li>     <li><a href="/misc/goto?guid=4958998911663622175">The <code>-C no-stack-check</code> flag is deprecated</a>. It does nothing.</li>     <li><a href="/misc/goto?guid=4958998911768000116">The <code>format!</code> expander recognizes incorrect <code>printf</code> and shell-style formatting directives and suggests the correct format</a>.</li>     <li><a href="/misc/goto?guid=4958998911866477170">Only report one error for all unused imports in an import list</a></li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4958998911965653256" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4958998912065610506" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>    <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/53797714">http://www.open-open.com/news/view/53797714</a></p>