This is an automated email from the ASF dual-hosted git repository.

placave pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datasketches-rust.git


The following commit(s) were added to refs/heads/main by this push:
     new bb6c191  chore: Prevent compilation on big-endian targets (#31)
bb6c191 is described below

commit bb6c191714f9f5e1349bc43ac2ab28ce29a934d3
Author: tison <[email protected]>
AuthorDate: Fri Dec 19 17:46:05 2025 +0800

    chore: Prevent compilation on big-endian targets (#31)
    
    Add compile error for unsupported big-endian targets.
---
 src/lib.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lib.rs b/src/lib.rs
index 07ace55..7e8afd2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -26,5 +26,9 @@
 #![cfg_attr(docsrs, feature(doc_cfg))]
 #![deny(missing_docs)]
 
+// See https://github.com/apache/datasketches-rust/issues/28 for more 
information.
+#[cfg(target_endian = "big")]
+compile_error!("datasketches does not support big-endian targets");
+
 pub mod error;
 pub mod hll;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to