Rust 1.78 has upgraded its bundled LLVM to version 18, completing the announced u128/i128 ABI change for x86-32 and x86-64 targets. Distributors that use their own LLVM older than 18 may still face the calling convention bugs mentioned in that post.Rust 1.78 has upgraded its bundled LLVM to version 18, completing the announced u128/i128 ABI change for x86-32 and x86-64 targets. Distributors that use their own LLVM older than 18 may still face the calling convention bugs mentioned in that post.

Rust 1.78.0: What's In It?

2025/12/08 02:45

The Rust team is happy to announce a new version of Rust, 1.78.0. Rust is a programming language empowering everyone to build reliable and efficient software.

\ If you have a previous version of Rust installed via rustup, you can get 1.78.0 with:

$ rustup update stable

\ If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes for 1.78.0.

\ If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (rustup default beta) or the nightly channel (rustup default nightly). Please report any bugs you might come across!

What's in 1.78.0 stable

Diagnostic attributes

Rust now supports a #[diagnostic] attribute namespace to influence compiler error messages. These are treated as hints which the compiler is not required to use, and it is also not an error to provide a diagnostic that the compiler doesn't recognize. This flexibility allows source code to provide diagnostics even when they're not supported by all compilers, whether those are different versions or entirely different implementations.

\ With this namespace comes the first supported attribute, #[diagnostic::on_unimplemented], which can be placed on a trait to customize the message when that trait is required but hasn't been implemented on a type. Consider the example given in the stabilization pull request:

#[diagnostic::on_unimplemented( message = "My Message for `ImportantTrait<{A}>` is not implemented for `{Self}`", label = "My Label", note = "Note 1", note = "Note 2" )] trait ImportantTrait<A> {} fn use_my_trait(_: impl ImportantTrait<i32>) {} fn main() { use_my_trait(String::new()); }

\ Previously, the compiler would give a builtin error like this:

error[E0277]: the trait bound `String: ImportantTrait<i32>` is not satisfied --> src/main.rs:12:18 | 12 | use_my_trait(String::new()); | ------------ ^^^^^^^^^^^^^ the trait `ImportantTrait<i32>` is not implemented for `String` | | | required by a bound introduced by this call |

\ With #[diagnostic::on_unimplemented], its custom message fills the primary error line, and its custom label is placed on the source output. The original label is still written as help output, and any custom notes are written as well. (These exact details are subject to change.)

error[E0277]: My Message for `ImportantTrait<i32>` is not implemented for `String` --> src/main.rs:12:18 | 12 | use_my_trait(String::new()); | ------------ ^^^^^^^^^^^^^ My Label | | | required by a bound introduced by this call | = help: the trait `ImportantTrait<i32>` is not implemented for `String` = note: Note 1 = note: Note 2

\ For trait authors, this kind of diagnostic is more useful if you can provide a better hint than just talking about the missing implementation itself. For example, this is an abridged sample from the standard library:

#[diagnostic::on_unimplemented( message = "the size for values of type `{Self}` cannot be known at compilation time", label = "doesn't have a size known at compile-time" )] pub trait Sized {}

\ For more information, see the reference section on the diagnostic tool attribute namespace.

Asserting unsafe preconditions

The Rust standard library has a number of assertions for the preconditions of unsafe functions, but historically they have only been enabled in #[cfg(debug_assertions)] builds of the standard library to avoid affecting release performance. However, since the standard library is usually compiled and distributed in release mode, most Rust developers weren't ever executing these checks at all.

\ Now, the condition for these assertions is delayed until code generation, so they will be checked depending on the user's own setting for debug assertions -- enabled by default in debug and test builds. This change helps users catch undefined behavior in their code, though the details of how much is checked are generally not stable.

\ For example, slice::from_raw_parts requires an aligned non-null pointer. The following use of a purposely-misaligned pointer has undefined behavior, and while if you were unlucky it may have appeared to "work" in the past, the debug assertion can now catch it:

fn main() { let slice: &[u8] = &[1, 2, 3, 4, 5]; let ptr = slice.as_ptr(); // Create an offset from `ptr` that will always be one off from `u16`'s correct alignment let i = usize::from(ptr as usize & 1 == 0); let slice16: &[u16] = unsafe { std::slice::from_raw_parts(ptr.add(i).cast::<u16>(), 2) }; dbg!(slice16); } thread 'main' panicked at library/core/src/panicking.rs:220:5: unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX` note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread caused non-unwinding panic. aborting.

Deterministic realignment

The standard library has a few functions that change the alignment of pointers and slices, but they previously had caveats that made them difficult to rely on in practice, if you followed their documentation precisely. Those caveats primarily existed as a hedge against const evaluation, but they're only stable for non-const use anyway. They are now promised to have consistent runtime behavior according to their actual inputs.

  • pointer::align_offset computes the offset needed to change a pointer to the given alignment. It returns usize::MAX if that is not possible, but it was previously permitted to always return usize::MAX, and now that behavior is removed.
  • slice::align_to and slice::align_to_mut both transmute slices to an aligned middle slice and the remaining unaligned head and tail slices. These methods now promise to return the largest possible middle part, rather than allowing the implementation to return something less optimal like returning everything as the head slice.

Stabilized APIs

  • impl Read for &Stdin
  • Accept non 'static lifetimes for several std::error::Error related implementations
  • Make impl<Fd: AsFd> impl take ?Sized
  • impl From<TryReserveError> for io::Error

\ These APIs are now stable in const contexts:

  • Barrier::new()

Compatibility notes

  • As previously announced, Rust 1.78 has increased its minimum requirement to Windows 10 for the following targets:
  • x86_64-pc-windows-msvc
  • i686-pc-windows-msvc
  • x86_64-pc-windows-gnu
  • i686-pc-windows-gnu
  • x86_64-pc-windows-gnullvm
  • i686-pc-windows-gnullvm
  • Rust 1.78 has upgraded its bundled LLVM to version 18, completing the announced u128/i128 ABI change for x86-32 and x86-64 targets. Distributors that use their own LLVM older than 18 may still face the calling convention bugs mentioned in that post.

Other changes

Check out everything that changed in Rust, Cargo, and Clippy.

Contributors to 1.78.0

Many people came together to create Rust 1.78.0. We couldn't have done it without all of you. Thanks!


The Rust Release Team

\ Also published here

\ Photo by Ubaid E. Alyafizi on Unsplash

Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact service@support.mexc.com for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.

You May Also Like

HashKey's IPO is imminent: Targeting the golden age of digital assets and building a benchmark for a compliant ecosystem in Asia.

HashKey's IPO is imminent: Targeting the golden age of digital assets and building a benchmark for a compliant ecosystem in Asia.

Original author: Ho Mo-cheung, Hong Kong 01 With a clearer global regulatory framework, increased institutional participation, and breakthroughs in underlying blockchain technology, the digital asset market is transitioning from an "early stage of experimentation" to a new phase of "institutionalized development." According to Frost & Sullivan data, from 2024 to 2029, the global onshore digital asset trading volume will achieve a CAGR of 48.9%, the tokenization services market will see an even higher CAGR of 94.8%, and the digital asset management services market will achieve a CAGR of 54.5%, indicating that the industry is entering a long-term, sustainable structural expansion cycle. In this round of structural upward cycle in the industry, compliance, licensing, and security have become the core elements that institutions and new funds are most concerned about. As a leading integrated digital asset company in Asia, HashKey, with its compliance-first strategic layout and business ecosystem covering the entire chain, is becoming a core bridge connecting traditional finance and the digital economy, standing at the starting point of the value enhancement cycle. Recently, with HashKey passing the Hong Kong Stock Exchange's listing hearing, its Hong Kong IPO will soon commence. This leading integrated digital asset group in Asia is showcasing the systemic value of its compliance moat, technological capabilities, and comprehensive ecosystem to the capital market. Industry insiders generally believe that HashKey's IPO will be a significant milestone in the institutionalization of digital assets in Hong Kong. Compliance as the foundation, and a synergistic ecosystem of business operations to create systemic advantages. In the digital asset field, compliance and security remain the primary principles determining a company's long-term development. As global regulatory frameworks rapidly improve, licenses and compliance capabilities have transformed from bonuses into core credentials for companies to expand their business scope and secure incremental institutional funding. Especially in high-barrier-to-entry sectors such as custody, RWA, and institutional asset management, regulatory approval is a direct ticket to the game and the only way to build competitive barriers. This is why HashKey has prioritized compliance since its inception, building a global compliance system covering core markets such as Hong Kong, Singapore, and Japan. As the first virtual asset trading platform (VATP) in Hong Kong simultaneously authorized to serve both retail and institutional investors, HashKey currently holds 13 cross-regional licenses, forming a regulatory moat that is difficult to replicate. Furthermore, the company's annual internal control audits have passed international certifications such as SOC 1 (Type 2), SOC 2 (Type 2), ISO27001, and ISO27701. Since its operation, it has maintained an industry record of "zero customer fund losses and zero on-chain penalties," laying an unshakeable foundation for its long-term credibility. Technology empowers growth from self-use to spillover effects, expanding the boundaries of growth. Based on this compliant platform, HashKey has built a full-chain business ecosystem of "transaction facilitation + on-chain services + asset management" and is rapidly expanding its market leadership. According to the prospectus, as of August 31, 2025, the transaction facilitation business accounted for 75% of the Hong Kong market share, with a cumulative spot trading volume of HK$1.3 trillion; the on-chain service staking scale exceeded HK$25 billion; the asset management scale exceeded HK$8 billion, and the return rate of its funds exceeded 10 times. All three segments rank first in Asia. More importantly, this integrated business is not simply a combination, but a self-reinforcing network that grows stronger with continued operation. Its flywheel effect manifests in: on-chain services providing tokenization tools for projects and institutions; exchanges handling distribution and circulation needs; and asset management accumulating long-term capital and meeting incremental demand. These three elements serve as entry points and reinforce each other, forming a positive value loop that continuously expands HashKey's ecosystem stickiness and market competitiveness. From compliance systems to technology platforms, and then to multi-business collaboration, HashKey is no longer just a trading platform, but a core hub for building Asia's digital asset infrastructure. On its technological foundation, HashKey has built a high-performance platform specifically designed for institutional scenarios: capable of supporting up to 50,000 transactions per second, with dynamic scaling capabilities, sufficient to handle periodic traffic surges and ensure stable and smooth transactions even under extreme market conditions. At the underlying level, the company's self-developed HashKey Chain—an Ethereum Layer 2 network for financial institutions—has become the technological carrier for key scenarios such as RWA tokenization, stablecoins, and DeFi applications, and has been selected by numerous financial institutions, gradually becoming the infrastructure for on-chain and off-chain asset flows. More noteworthy is that HashKey's technological capabilities have begun to be exported to external financial and technology institutions, creating a cross-market growth spillover effect. For example, it has partnered with Coins.ph to export its underlying technology and liquidity capabilities to create a licensed cross-border remittance channel; it has partnered with securities firms such as Victory Securities to launch compliant integrated account solutions; and it has partnered with Standard Chartered Bank, ZA Bank, and others to provide 24/7 fiat currency deposit and withdrawal services. This "technology infrastructure spillover" model has essentially expanded HashKey's growth boundaries from a single platform business to a broader regional fintech market, bringing more flexible long-term growth potential than the trading business, and also enabling it to establish a clear leading position in the Asian digital asset infrastructure race. With the accelerated implementation of scenarios such as RWA, stablecoins, on-chain clearing and payments, companies that possess both compliance access and underlying technical capabilities will capture the next long-term dividends of the entire industry. HashKey's early deployment in this direction is essentially opening up growth potential far exceeding its current scale. Ecological effects are beginning to emerge, and growth is entering a period of acceleration. As its business ecosystem gradually takes shape, HashKey's growth has entered a period of accelerated development, and the ecosystem's amplifying effect is fully unfolding. Financial data has already shown a clear structural upward trend: Total revenue increased from HK$129 million in 2022 to HK$721 million in 2024, a 4.6-fold increase in two years; the Hong Kong station launched in 2023 became a new engine, with Hong Kong revenue increasing by 58% year-on-year to HK$89 million in the first half of 2025. In terms of revenue structure, transaction facilitation services have become the main driver of growth, contributing 71.8% in 2024. Meanwhile, high-margin on-chain services and asset management services continue to provide stable cash flow, forming a virtuous cycle. Increased revenue has driven rapid expansion of gross profit: gross profit increased from HK$125 million in 2022 to HK$533 million in 2024, representing a CAGR of 106%; adjusted net loss also narrowed further from HK$400 million in 2022 to HK$376 million in 2024. Overall, the company's multiple advantages in compliance, technological capabilities, and ecosystem layout have built a significant comprehensive competitive barrier, firmly securing its core position in the Asian digital asset market. In the context of the deep integration of traditional finance and the digital economy globally, companies that integrate compliance, technology, and infrastructure will reap the greatest cyclical benefits. HashKey's strategic layout aligns perfectly with this wave of industrial structural migration, and its technology spillover, ecosystem expansion, and first-mover advantage in compliance are demonstrating its true long-term value to the market. In the Asian market, HashKey's strategic position deserves a more imaginative reassessment, and its growth potential is far from being fully realized. In particular, against the backdrop of digital assets becoming institutionalized, this not only represents a new stage in the company's development but also symbolizes a new trajectory that Hong Kong is forging in the global financial landscape. Original article URL: HashKey's IPO is imminent: Anchoring the golden age of digital assets, building a benchmark for compliance ecosystem in Asia | Hong Kong 01 https://www.hk01.com/article/60300961?utm_source=01articlecopy&utm_medium=referral
Share
PANews2025/12/08 11:15