|
9 | 9 | <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
10 | 10 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
11 | 11 |
|
12 | | -<meta name="generator" content="Hugo 0.92.2" /> |
| 12 | +<meta name="generator" content="Hugo 0.115.0"> |
13 | 13 |
|
14 | 14 |
|
15 | 15 | <link rel="canonical" href="/blog/release-0.30.0/" > |
16 | | -<link href="/sass/main.min.54c0387e824717d9b39eaf75492f7016a1193974a3bdf5c8a427d72c5b2bbaa7.css" rel="stylesheet"> |
17 | | - |
| 16 | +<link href="/sass/main.min.4e3efe637d21e3743f006dbceaa8d8f10952bb4f4d19989c58c5afb0fc120a52.css" rel="stylesheet"> |
18 | 17 |
|
19 | 18 |
|
20 | 19 | </head> |
|
29 | 28 | <span class="terminal">dev@rust-bitcoin.org ~ $</span> |
30 | 29 | </a> |
31 | 30 | </div> |
32 | | - <input class="side-menu" type="checkbox" id="side-menu"/> |
33 | | - <label class="hamb" for="side-menu"><span class="hamb-line"></span></label> |
34 | 31 | <nav class="headerLinks"> |
35 | 32 | <ul> |
36 | 33 |
|
|
60 | 57 |
|
61 | 58 | <div class="postWrapper"> |
62 | 59 | <h1>Release 0.30.0 is out!</h1> |
63 | | - <section class="postMetadata"> |
64 | | - <dl> |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - <dt>published</dt> |
70 | | - |
71 | | - <dd><time datetime="2023-03-21">March 21, 2023</time></dd> |
72 | | - |
73 | | - |
74 | | - <dt>reading time</dt> |
75 | | - <dd>7 minutes</dd> |
76 | | - |
77 | | - </dl> |
78 | | - </section> |
79 | 60 | <div> |
80 | 61 | <p><code>rust-bitcoin</code> <a href="https://docs.rs/bitcoin/0.30.0/bitcoin/index.html">version 0.30.0</a> is out now.</p> |
81 | 62 | <p>This is a rather large release so we decided to write an update guide for you guys. If this guide is |
@@ -107,11 +88,11 @@ <h2 id="suggested-steps">Suggested steps</h2> |
107 | 88 | <li>Replace <code>TapBranchHash</code> with <a href="https://docs.rs/bitcoin/0.30.0/bitcoin/taproot/struct.TapNodeHash.html"><code>TapNodeHash</code></a></li> |
108 | 89 | <li>Change <code>hash_newtype!(FooHash, sha256::Hash, 32, doc="A hash of foo.");</code> to:</li> |
109 | 90 | </ol> |
110 | | -<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-rust" data-lang="rust">hash_newtype<span style="color:#f92672">!</span> { |
111 | | - <span style="color:#e6db74">/// A hash of foo. |
112 | | -</span><span style="color:#e6db74"></span> <span style="color:#66d9ef">pub</span> <span style="color:#66d9ef">struct</span> <span style="color:#a6e22e">FooHash</span>(sha256::Hash); |
113 | | -} |
114 | | -</code></pre></div><ol start="11"> |
| 91 | +<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-rust" data-lang="rust"><span style="display:flex;"><span>hash_newtype! { |
| 92 | +</span></span><span style="display:flex;"><span> <span style="color:#e6db74">/// A hash of foo. |
| 93 | +</span></span></span><span style="display:flex;"><span><span style="color:#e6db74"></span> <span style="color:#66d9ef">pub</span> <span style="color:#66d9ef">struct</span> <span style="color:#a6e22e">FooHash</span>(sha256::Hash); |
| 94 | +</span></span><span style="display:flex;"><span>} |
| 95 | +</span></span></code></pre></div><ol start="11"> |
115 | 96 | <li>Fix outstanding compiler errors, if any</li> |
116 | 97 | <li>Optimize the code: replace occurrences of <code>&ScriptBuf</code> with <code>Script</code>, remove allocations…</li> |
117 | 98 | <li>Remove useless conversions <code>LockTime</code> -> <code>LockTime</code> (clippy has a lint for it)</li> |
@@ -267,10 +248,11 @@ <h2 id="final-thoughts">Final thoughts</h2> |
267 | 248 |
|
268 | 249 |
|
269 | 250 | <footer class="footer"> |
270 | | - |
271 | | - <span>License CC-01 , Built with <a href="https://gohugo.io" class="footerLink">Hugo</a> and <a href="https://github.com/LordMathis/hugo-theme-nightfall" class="footerLink">Nightfall</a> theme</span> |
272 | | - |
| 251 | + © 2023 rust-bitcoin, Built with |
| 252 | + <a href="https://gohugo.io" class="footerLink">Hugo</a> and |
| 253 | + <a href="https://github.com/LordMathis/hugo-theme-nightfall" class="footerLink">Nightfall</a> theme |
273 | 254 | </footer> |
| 255 | + |
274 | 256 | </div> |
275 | 257 |
|
276 | 258 | </body> |
|
0 commit comments