[21/32] rust-hashbrown: New crate required by rust-1.83.0

Message ID 20241221125539.15309-21-adolf.belka@ipfire.org
State New
Headers
Series [01/32] rust: Update to version 1.83.0 |

Commit Message

Adolf Belka Dec. 21, 2024, 12:55 p.m. UTC
  Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/common/rust-hashbrown | 51 ++++++++++++++++
 lfs/rust-hashbrown                     | 81 ++++++++++++++++++++++++++
 2 files changed, 132 insertions(+)
 create mode 100644 config/rootfiles/common/rust-hashbrown
 create mode 100644 lfs/rust-hashbrown
  

Patch

diff --git a/config/rootfiles/common/rust-hashbrown b/config/rootfiles/common/rust-hashbrown
new file mode 100644
index 000000000..c89be0c91
--- /dev/null
+++ b/config/rootfiles/common/rust-hashbrown
@@ -0,0 +1,51 @@ 
+#usr/share/cargo/registry/hashbrown-0.15.2
+#usr/share/cargo/registry/hashbrown-0.15.2/.cargo-checksum.json
+#usr/share/cargo/registry/hashbrown-0.15.2/CHANGELOG.md
+#usr/share/cargo/registry/hashbrown-0.15.2/Cargo.toml
+#usr/share/cargo/registry/hashbrown-0.15.2/Cargo.toml.deps
+#usr/share/cargo/registry/hashbrown-0.15.2/LICENSE-APACHE
+#usr/share/cargo/registry/hashbrown-0.15.2/LICENSE-MIT
+#usr/share/cargo/registry/hashbrown-0.15.2/README.md
+#usr/share/cargo/registry/hashbrown-0.15.2/benches
+#usr/share/cargo/registry/hashbrown-0.15.2/benches/bench.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/benches/insert_unique_unchecked.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/benches/set_ops.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/clippy.toml
+#usr/share/cargo/registry/hashbrown-0.15.2/src
+#usr/share/cargo/registry/hashbrown-0.15.2/src/control
+#usr/share/cargo/registry/hashbrown-0.15.2/src/control/bitmask.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/control/group
+#usr/share/cargo/registry/hashbrown-0.15.2/src/control/group/generic.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/control/group/mod.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/control/group/neon.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/control/group/sse2.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/control/mod.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/control/tag.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/external_trait_impls
+#usr/share/cargo/registry/hashbrown-0.15.2/src/external_trait_impls/mod.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/external_trait_impls/rayon
+#usr/share/cargo/registry/hashbrown-0.15.2/src/external_trait_impls/rayon/helpers.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/external_trait_impls/rayon/map.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/external_trait_impls/rayon/mod.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/external_trait_impls/rayon/raw.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/external_trait_impls/rayon/set.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/external_trait_impls/rayon/table.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/external_trait_impls/serde.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/lib.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/macros.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/map.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/raw
+#usr/share/cargo/registry/hashbrown-0.15.2/src/raw/alloc.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/raw/mod.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/raw_entry.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/rustc_entry.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/scopeguard.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/set.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/table.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/src/util.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/tests
+#usr/share/cargo/registry/hashbrown-0.15.2/tests/equivalent_trait.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/tests/hasher.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/tests/rayon.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/tests/serde.rs
+#usr/share/cargo/registry/hashbrown-0.15.2/tests/set.rs
diff --git a/lfs/rust-hashbrown b/lfs/rust-hashbrown
new file mode 100644
index 000000000..cfc0291a8
--- /dev/null
+++ b/lfs/rust-hashbrown
@@ -0,0 +1,81 @@ 
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2024  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 0.15.2
+
+THISAPP    = hashbrown-$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_BLAKE2 = 453888ce68b10cd6e93d787986603fceb29b83fe2dc417e7e57316b9e0060d0bba51ec7fb71d46a038662c99f60deac8237a8f349297208d1d223bcc13f0d0ea
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+b2 : $(subst %,%_BLAKE2,$(objects))
+
+dist:
+	@$(PAK)
+
+###############################################################################
+# Downloading, checking, b2sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+	@$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+	@$(LOAD)
+
+$(subst %,%_BLAKE2,$(objects)) :
+	@$(B2SUM)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+	@$(PREBUILD)
+	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+	cd $(DIR_APP) && rm Cargo.toml.orig
+	cd $(DIR_APP) && $(CARGO_PREPARE)
+	cd $(DIR_APP) && $(CARGO_BUILD)
+	cd $(DIR_APP) && $(CARGO_INSTALL)
+	@rm -rf $(DIR_APP)
+	@$(POSTBUILD)