diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest index c29831f637f85..078eb6cde9c7d 100644 --- a/dev-lang/rust-bin/Manifest +++ b/dev-lang/rust-bin/Manifest @@ -1004,6 +1004,41 @@ DIST rust-1.98.1-x86_64-unknown-linux-gnu.tar.xz 202560136 BLAKE2B 7418f0b386ef4 DIST rust-1.98.1-x86_64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 8b80744332642bf008fee49c5bca353077745a57a34cb2ee032f399bd3318cd75fd9a2d43b1eb55a91d1bdd2923f67af19ce2f38e5378281b3b990974a7c6a36 SHA512 80b0f668b4581b9dd27657473c495604656b2d62ed99613ceb66a2b8e2992067c8c4a96fe542be87c4930e45ddf975ce6983de329d7bf87f83df50eea528cc28 DIST rust-1.98.1-x86_64-unknown-linux-musl.tar.xz 323672928 BLAKE2B 933a3ec8a17dd4ec68c6a1afb1724b87870b1ebdd342825f7ebe44a7f380bcf4584fa8db661ccf50dd54889417559874ab803e4b359fc63dadd6f7c84c112b0c SHA512 a0aeb4730c63023b49fe00b30dea9f7db79f671b429f4b78cb5fd8c3eb21359b68ed88f602e1624952ff4d81828873c8bb63c9c7883966af71801d9017eb9fd6 DIST rust-1.98.1-x86_64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B e900be29f69f99944b0b42ed87dba207358f2bc6001712c014bb2b904bcd221e6d756e15a09af1fe950244168abff6df16594830639f25c10793b3750c884cee SHA512 e021d13de96b82e2af5f89e509d2974c65df736f09ad31fcc770d68f8bf3df5576abcf06ff4f417ea850036e3a3187b49177baa4724085c7bf49887ea03eaabb +DIST rust-1.99.0-aarch64-unknown-linux-gnu.tar.xz 188202280 BLAKE2B 71d2af818f688b621536d0eb355528ca5647ae1475df85481bd8126b5b29f3463f420a0010ea06c1118c6071934853241548b899da2037ac0f2201bd3cecd420 SHA512 912513e35a7fc8bb758205e3e3ec2c217800e43e4bb62bebfa0c42778f876bd44b9935c5dab654d9f223af21ac8cdf0c6dd1007e5a57bf08ce22a6eca597c0b0 +DIST rust-1.99.0-aarch64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 5c4efb69f685aa932d2f2f6bd2e8ec56297b1a88c83594754374b37f2cba61b3e7f83d20ce307d6c0eea4b5b495f4435b0a10bd7ae0f03e43f583fbed3cf74ab SHA512 fbfc589f80d39ab919ed552920ff9bf367e0d2a704d45f431d579c57c7ae9b1694e26fd412eec1f3d68fe87aa9cbe905548aff10201741bd7bcc464663e45a9a +DIST rust-1.99.0-aarch64-unknown-linux-musl.tar.xz 279377564 BLAKE2B 3549bfd82f3ac223cac26ed39580d19aacb751515d34f2f07f098dced97266f69d01e537acf26107d227d9c3d692bfc1e574f77431d6f995698b80946f90a282 SHA512 81f7ad697b45e11a2048b5bc90651e378c37af9c2761cc39dece3a899f6ef977225cae013efe88274ca95d2cf41b022637bc84339ad554bb75ae49cfaa68657f +DIST rust-1.99.0-aarch64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B da81cd8b6d12841a431a79c2240d6e479cd758abd34691eabaa7993b004bfc149f4c98a85f7f388da86fdf0f9ebb2ed0400dac689b1bc514f7b97299820988cf SHA512 14ea4174aed2378744f6f07ed108a449aae5ecb2319c88d53a18e3d08aae4c917b465f7656777d127dc3422b49a12b81d6895cee9212cf1d3a4aeb74808d062d +DIST rust-1.99.0-arm-unknown-linux-gnueabi.tar.xz 255835536 BLAKE2B e0a050cf6166cbe636e1ef69d2d8d8b604e3d1f8c7cefe863278af4721becdbb484af9d311fbc379f081ddb8f1ccb708e4c366e10cdc76fe082e3bc9d9dc214d SHA512 ba6c97197b29c213764877614b3c6d4e550e17ff28e82db69a6ee61a5635f91a11a87725d47fcb1e464e33963287c6c57df22e0d3f2cbc48e48cb6cbdc91625a +DIST rust-1.99.0-arm-unknown-linux-gnueabi.tar.xz.asc 801 BLAKE2B 9ab87d7bfeaaa7814b9633254447a3c86cec16c59654cf3a732c4037ed696ffbf9b41150cc752b20a9a1d25b5e9ded34d919edbb9d2de22aa8070bee586f1c53 SHA512 dbd9c224d815c0b14dfe09388378e2dff83e07c6d807703b68278eec8f467d1a44ab4649d8d816f954741063f0a7fdc4596754e764b05ba1f16ea40a3fc6b91a +DIST rust-1.99.0-arm-unknown-linux-gnueabihf.tar.xz 257418900 BLAKE2B 84cd572905189e6d453175b2c4e8d07f760e3bedc5c3b1d87a9fd77498c00bbfd859a6a1612416a5077dacd8041377af7994640dfccc10ac9fd9538656c60ccb SHA512 393b498d3c2f633c0dcf037cb3edc9a4a3093e0de1ce3f158f3a6fb837abea6d1d883ef090a0da7c8600843070dfb057e86174330a432ac368000ad9049b246c +DIST rust-1.99.0-arm-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B 149dc50e8faa10c95a57839e95f2e160bb5a8b68578b8bc21a393e05e6142316b4e96c483822fb65b6b4b9d6f97c000901970b692aab5881b736a1847ea5a9c2 SHA512 e412001a8b3f17f809ed15e1a0e1f285621ed46a6f59058427e934ec0b2700817d1e0262d39c1fbac2cb6910a09b041ba1fa738cd7b574c7fe871d60c245f1fe +DIST rust-1.99.0-armv7-unknown-linux-gnueabihf.tar.xz 261359300 BLAKE2B 9eff44cc99439b570121ccd45198b7855cca429f2306e431ee275a0774557ffd92cfda4b007e4653c591c29624f34497b4f4bf021a99127cbcc357271d374562 SHA512 9328a720657f98b5cf9c61ac28b633808ba3969ae2abbdd5d2a773346653d0e6d0c67adbb3e27b5661ccf6c2b41c783c54579683671ef92347b5e94deb2ed8e0 +DIST rust-1.99.0-armv7-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B 6b02a0fd17f1e5dc608abefba8506fee2651244cc61d8e4d538cf4725a10201349af2567d079b35d999f75935beee2cccced1a18909105c7ca98f6d6cf1ab780 SHA512 44b06e4ae165f77be813ff3ce4e7cc36e5522746dcb8ad88590211f6a8c84f758572f10d2e4e075ab7975388a2192c2b63a35ff7f88f11d32cd926525d579875 +DIST rust-1.99.0-i686-unknown-linux-gnu.tar.xz 299475640 BLAKE2B 1cdbbebd01a32e18546671007add45e160faa38a1b0457740198fe560952fcd8fabfaba6cf6a9ba48a0bc5428faeefee5a239af4f8101f30dd5e44ba583b5a2b SHA512 46e651215160de36e4a4ed7d30394f2617bf16bd7085bdbde8a5dc985ba1b1d6f3d8554b9a61b78f94b2698ea7f34c32a3621b8b97d2914bcae3cefbc5974b1f +DIST rust-1.99.0-i686-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B f60a5c40d04e7bf0b3a5a3afa6508033a8d22d3814c86486220e34930f687f06e18928390e4bdc25aaf9404256c5e0dff32eb8ba57e2d3d0f1fd284d55823ee8 SHA512 cfce3838995e74bde6fc0524d5c978414d6ab93e747eb6ac42226cd6551fd0d41438cf68f4c2f5ed0ef441e7fec4778a71aa5cdf35ee24a87bfb72b2be71915b +DIST rust-1.99.0-loongarch64-unknown-linux-gnu.tar.xz 293873068 BLAKE2B aea40ee7fa66329abefe97b8e5aa90d5ef2779d2a06a0444dae1f3728ae08eb13f0dc06ce500a57a0f8342ebec0001ea4d1f45e9f9376e556d625bb95e470e6c SHA512 df3e6ea337b3c92147cd73936354b74913779c25f9451b36b59a6549d94cdf7d7cd293a054d82a06e40952a8dd98c9cd93c25af8a12a501bfcec085cca827ade +DIST rust-1.99.0-loongarch64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 22a77b9dec31d03498c887c9441a70ebda491b753ce3e67d0aec820fe64ef1078b3daf18ceb30290351e9460784b552e76eae8de8c7d98096db47ac297b9f90a SHA512 f2570e414ef7df0344aefd4385085ef7a24692afc66b97f0b46f06df692bf46d07124f26aa8daf18bf2887e4b2f55762a538c208f6dcdcaef38a73e90b411aa4 +DIST rust-1.99.0-mips-unknown-linux-gnu.tar.xz 83957992 BLAKE2B 909bdf3f7fa573d61ca5a079f58289388027eef13115b5da54cf874f989701dfe5d404060107231eef7a2bcb0802efc22b87713e0ea77bb8c22072e9c5ac902a SHA512 3c93ba8f9c5a8e609497018aecae7a1fa61afcba7b9ece49a4bdbdf9a730d595327a76245528863756a71a92fa4d7e545504aa116101f7612ebdc63f71f7a80d +DIST rust-1.99.0-mips64-unknown-linux-gnuabi64.tar.xz 84163600 BLAKE2B 90328fd2193403d968c8d688cd695c2c9e527c0490afb69a02c57651ac7539371a164b4f8a6287203df5c6e441cc622f33e1d5dca0d408fac1ac53cb41fab3c2 SHA512 fe6c76ceecdbec3348168dc66d9294687c1290bd57ed0b3d47559dcecf6ab3cf4741175608bf451fa26084ec9c8ac01bd1522a48f7c56320086ab18140b9c4b5 +DIST rust-1.99.0-mips64el-unknown-linux-gnuabi64.tar.xz 85893324 BLAKE2B c38d353e176afdd21669f342864d18b568ba4bdccee7f900104915cf92c020a95e6911436bb40167a983987732db1e4b35185148848d7e74d016b365a5f1fcae SHA512 3a9c4b1daa150b623ea32fcf1d58546475195957678cd0f33b9592d9aee7b59f79f6bf87bd8d3fa995845b083ccb9abac1030f634207858ac5735952c92c2f56 +DIST rust-1.99.0-mipsel-unknown-linux-gnu.tar.xz 85672024 BLAKE2B 0919b4232f1edeec6de79de36f46579507e44e8b48827b074cdebf9c1c21793a7351222f93a0d70a712384e4ae083c5f7ad072fe3f91c5f9ed773231068bdfb3 SHA512 8b27254a8a903b747281dcea870609a309a0426e567da0f70cc28e168dc1e2af0ff48b395dc522825cd6f24d19c1cef1ea6ccf21d50c6c8f0b460e44b682e9c7 +DIST rust-1.99.0-powerpc-unknown-linux-gnu.tar.xz 278067740 BLAKE2B da74c887fb261e4f2ec1c85f9756e140af05ee25b661402dcf3faf01d1e7c4fad6148e5527e76b10d213a10e27d18fccf7c186dfc82eba3c1f2d302e0082de2e SHA512 a640c41d751cdc76432a3c85843a49b4a9276b868829b043471109a951285c3c32990564ba3a309fdb438818fa62a990bb18bbebf23a413b56c158d24069e32c +DIST rust-1.99.0-powerpc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B fdb1d8c3f659998f55d98ff0b8b286b00bbd8f5d73ac959d10a0ebb590f1912b5f27384717f57fbb579fa83e8955c42a5877be160a277ad804e54f6a41f667e0 SHA512 40d385ffc8980b46aa332d6e0e5648a9b2f78d6e50ca9efb94f8e9a1e1df82e7da64908aae25eeb234ad82c6e365c31d877894b5345fb0673bd885263dbd2f6c +DIST rust-1.99.0-powerpc64-unknown-linux-gnu.tar.xz 282364084 BLAKE2B cdf09cd4fac28a8e5caacee5f42cc5b1cd4945c98af9e10b792d31027505ed9193d9368a7c1554e6bd72c7039d477f0b72b78aa9ca8cc84b56730b4830856d93 SHA512 0a00ace05af01bc5726fecfde29df34d9bc9aa2913197c721cad2c7a723feef0f33904ebd7f5fe18f8bd1467f9bc72523dabd0ae731911eddbcb535d40779dc0 +DIST rust-1.99.0-powerpc64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 1033688b1851a208d45d3566abfdcf248d25f747b3996619b6924244cca375576f64dae9c6025db835084016d4045b68204d6ef053a6d92af4cae3671bddcc7a SHA512 6f9e4b3839c881186cfa40be640c4e4122d7973dac310706e8ad97f8d62ea99d7da1370241a3f5d866eaa44a34c6373e6aed295950440be42e6c728bdd24ae88 +DIST rust-1.99.0-powerpc64-unknown-linux-musl.tar.xz 88054764 BLAKE2B 22f9be0e6994d222c310d994e7cfc7730aeaa4a6813d5df4a1955a5a14f43abc46edc57640e06adb7dba7ccbbbe16f7a499c403acad48c63de9b0e7bc9aa0e2b SHA512 7ed02a3c33069699354bf4fcaf4e8e0f8f1d36ddcb6064485dee2d3d880952bfb0cda5fd74ae50fbbd3de2056a71b3c53e510228aef1032acfcc4857c1ae6f78 +DIST rust-1.99.0-powerpc64le-unknown-linux-gnu.tar.xz 297523688 BLAKE2B 7b3b177215c5d1b932b26aa30228b054a0812f1c95bb4be4f50a2a2bb190a89b48a278e67b12a23f11c619f3cf4d2de2e03fcf74d70f83e31f58a1813dc78aa8 SHA512 10ca48af608cdfe00c7c2309ea26872953d6a3e8988415f53f1e88880f1979df20d76f4f90f7d9c9f4dc95d9fa6e99c9fbdc51a1d565f1db4156b25e1e91342f +DIST rust-1.99.0-powerpc64le-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 6da529a45a3b865394e6c2d00d4239bcb0be893b4b2850fb1aa8f5589a5e6293315eaecbc72533ce49a68c66a0b663beb73cd7714a43a19928fd0ec810307ffb SHA512 a36c4a33a9f9473b98ebd1d236a3f62f677610cfd84efcfad752c102896f51a337791b265a32c3b706de2fa497175914e811e4873aab437537c38331d3284cd0 +DIST rust-1.99.0-riscv64gc-unknown-linux-gnu.tar.xz 279227124 BLAKE2B fe173a64181b6d062d7bd47417aa6e93785795dadbbd865a23c19c7b99e61573f631fd30ce65cf3115f248475c7db7e9b87c5766631ac59f79d4befb9e60ff0e SHA512 beb15015a7189fb1fade5762a38739e422971e02290aaf5c457c488381bc58cf369fb190ad5e814511503ee54cdee7d816139564797f467a91c83b002efc39aa +DIST rust-1.99.0-riscv64gc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B fc9a3e551255266a1ec181c856e88bce49a9a31e8afca36d7c4c1bc38f797dcbfbf08bb77f345358aa37a1422734469c2a11faff4782975c65ab0a0a22e2b141 SHA512 544bdf6c09bbc439ea1b96529b8c991a8880a2ceba663b0e4936e250d7235671efe7ec2b25891bfb455c074cbf4009e8ff0b1c61515e5eb7059e4de117302dc7 +DIST rust-1.99.0-riscv64gc-unknown-linux-musl.tar.xz 92418004 BLAKE2B e983789197834f435e2e53bc752cafe30d5bded3c4838e133eaa9e2a7f82ef01cd9af482b34135b4f17fab428ff3462fe60202443ca456b96b9335fa4c5a80aa SHA512 8c49d6e1e16011a51b7a6420251ea9955cf75b00969fdd655865a999e3055de21c818e4ecf2c7a83f6a4bac61ff858b73cb0208d7666bb0fef6292514e61975c +DIST rust-1.99.0-s390x-unknown-linux-gnu.tar.xz 276414144 BLAKE2B ba2bbfda9d4f81b75def74fef7175bf89f42765e049e849b06ec941b3800e1c09a7634e0a7fa13cccd200d1e4598546c61683eeca45b9f8143b9be817eb6344c SHA512 a3d78b25e6c6520b503378d540393184f72ebee396e0ba1ab04d9012f53416fe89a4ee608f4f38e27a93739aa1132ebb32b8bfac6bde07ae87db68058e8fc9d8 +DIST rust-1.99.0-s390x-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 5e09a984104f6ca7b3d6cd30c656b5f9dbd4f1b6043f2dc858b909d40b1a1f8ffaf3ccea494753517ed0864c127603a4a4493fe29f50cd5806eea4ecf8931d3e SHA512 eced2828524518f4d99b4f395504aa769f1e4b66ea1962e9f4b3a6912d345791cb8ae891813b0ffe9185073562e0360f0a70226e6edd35e2b5daef992f8636c3 +DIST rust-1.99.0-sparc64-unknown-linux-gnu.tar.xz 81295548 BLAKE2B 29de6e380994fa615edbd7b67301b3bc74aa3edc2dbd72a4ed9a1eef18ce7913ba9213f7f496bd8b8cfe8ac3294cd807049abac955c3b28fe990e33aa4354010 SHA512 dcca48428ea1b94abe3fb1081e626c944b5e523294584266faf1383cc0240549189f3ffaedcf29ca86e29b09a0cff18f78ebb32ba7f786798f933cc940997d63 +DIST rust-1.99.0-x86_64-unknown-linux-gnu.tar.xz 210462232 BLAKE2B d125baf08f8ab3aab2722529c5c752460600712697149beb91b16f38df2adda8b19e87d198d44eba8fe38866eb09d9fe46b53d7a6d6b5a299311670d0a8a6cb6 SHA512 50ef53b50c02da98a48b0c9c5d091b2966c7ce25333f563ccef836f8b19337a302095f0bcc5e31f333c79d7456ef4d445e0872fb637a141843fc94a69c005084 +DIST rust-1.99.0-x86_64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 996bd19450f249034ec4d7b8f268c75e80a9ef3aca108ffebc84dbbcc2a1415d9ebd0edab73974773ed9ffddf24630d3c43ae94fa1f522bf832317f5f86a4422 SHA512 6ea208ec818ac27abb1a44b69244fea110824bfc743707a1a8c001941df840e73c572b7fcc6bfb2c74c4ee5bf09a24857e49291ba1010843ac54ea94bc33dcd0 +DIST rust-1.99.0-x86_64-unknown-linux-musl.tar.xz 324541956 BLAKE2B 79db21c4a6326e2ecdbcd935c5b44ac1e69c851984b10ceeb4d78c5378053d24a3a3cd37a338851e20a938794a0bb97fa32e20f288f8d827c48e21b1b5791c73 SHA512 6e93da5a15e37ea7661ab816d90db7b5fec1aaec00066840687c2fac87871ad1a9b92cb4ff444f7b14703800c0da9cb991b91cc3dfad135a40d1d902f606d44e +DIST rust-1.99.0-x86_64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B dd1071dc65f8caa8b5a9fd81c2435c52db4fa8d2e9f79074b2117182f0488643ddaf38d36fab72d11c277723f896ffda62b91f655870da9ef72c4f450f67eeb2 SHA512 f8b0c26d0328d05dc4775d7deb216a88c4aac51ad000feacde7ab389236617bfd1aa01446d9d4e559af2ca2e8981f3c7a29bb4d7283adb628011a13e0e1ebbfc DIST rust-src-1.74.1.tar.xz 2544036 BLAKE2B d95431b69f102782f51878ff73ce8802cac6dab7909497c3231d1c479b95dc2a618cc6efd8bac9c6bd59a2b10dc6be05199f1e1bd74e45cc640ee52352c29268 SHA512 11467d0936193c5a5be8c2eba1aefe2b7028af48494698863de2c4057d68ce33dcee1fc66dc2d68b1d32f0202ce49e9b906727849de8f8d904dd07930e76d5a4 DIST rust-src-1.75.0.tar.xz 2570256 BLAKE2B 9db7ccff07ffe6991233e9f530321fd6ba48c561dcf1226537afa70c7d045421d8e83c5300b0866ec6fccfaae96dd67b9f204e9e0e12108c0c766d467cd78909 SHA512 e7565cea2f1658a05237a698e38880df2544319b41b6d8b0805db5f1f94fd3bb4f986967d0440fcdfe3a135e33246f3c747665b964f57ff5942f56133af78cdd DIST rust-src-1.76.0.tar.xz 2590884 BLAKE2B d1a6215dab34d7b10c3177d2b248f997d3a846388f3442567572880aa5c5bc51b56398f5d4dc32727cee7c9dbef494430d6534a76b66c4ae5ac4fed07266644d SHA512 39d2fe58fae8c8c5a6cb3fb1ef2a1c7548c018fef6ccea531659fdfecd68a4aa77125299d2cbe5b58e500337b4d074928318fa9ebce358af500d0ef27260e3ca @@ -1033,3 +1068,4 @@ DIST rust-src-1.95.0.tar.xz 3827368 BLAKE2B b19d0c6043b405fc5d1889f58cbeb8c4b002 DIST rust-src-1.96.1.tar.xz 3868228 BLAKE2B f509efa5be0be11da292a9b2d9f4ae87667ea69293fdf81329ae6fb1790437fe3f01c5c7c0691e4e535d5386bca0e1dd090a4b74f7e55f58db4d63be27fff419 SHA512 daca9d4df578682c1a92e0addf4fcb258e135ff9610c81826004089d4ffdf41b3f0b3dbfa2a1562f9531d4e5a58f744e87655f011ff9bbafe04ac5bc63e16639 DIST rust-src-1.97.1.tar.xz 5660384 BLAKE2B 23357e49cc9ba35d1f9f1999af32589fd6e12790cb16ec1895aa9272a8f73a4bea93b0ad4d2b0d330ba46bc5458ca9ade9b5a2400d7f96ef093d4f537a567672 SHA512 fe1ba24325d63c66de18c5bd877cd247173ee3bbb67f6fdc54519c52841658f602d28b3b648849ac9a916b9b5c5f7684415bd8c05556137d717bf73367650db7 DIST rust-src-1.98.1.tar.xz 5741168 BLAKE2B b5d80e3f45b4d36da9ea2cf6262e41f0213a7c3903a9011850f3ecd4d56de29a1da2e9a98c6da910a786ca21df2ade52e8703a8749b224ac9680a82812cd15ab SHA512 9b3536ecedc719e151c51c11ff1a3f67972ccfbadaa57a5d395f436ab45db78a27e1cb55268cdc72389c333080de08cdf9af0012c4cdda7e384fd24369518198 +DIST rust-src-1.99.0.tar.xz 5863232 BLAKE2B 2c9cdbdeae05bfd49600dbe63dfb7385e430c6764313f4f36dc9d0bec1c6a755017bb4dcc5caa0f9d89981c092bf3993963c35f8b4e37092e3acea8029fc78b9 SHA512 51df29b6e62e6811dc38a874eb241c27776aaa3e69a601ed24d822094d340fe53010e0fe24a6260e725360c8444269d388bffe9cc55f566adac97d57fb805e6a diff --git a/dev-lang/rust-bin/rust-bin-1.99.0.ebuild b/dev-lang/rust-bin/rust-bin-1.99.0.ebuild new file mode 100644 index 0000000000000..c7d6874a2a238 --- /dev/null +++ b/dev-lang/rust-bin/rust-bin-1.99.0.ebuild @@ -0,0 +1,336 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( 23 ) +LLVM_OPTIONAL="yes" + +inherit edo llvm-r2 multilib prefix rust-toolchain verify-sig multilib-minimal optfeature + +if [[ ${PV} == *9999* ]]; then + # We need to fetch a tarball in src_unpack + PROPERTIES+=" live" +elif [[ ${PV} == *beta* ]]; then + # curl -Ls static.rust-lang.org/dist/channel-rust-beta.toml | grep "xz_url.*rust-src" + betaver=${PV//*beta} + BETA_SNAPSHOT="${betaver:0:4}-${betaver:4:2}-${betaver:6:2}" + RUST_TOOLCHAIN_BASEURL=https://static.rust-lang.org/dist/${BETA_SNAPSHOT}/ + SRC_URI="$(rust_all_arch_uris rust-beta rust-${PV}) + rust-src? ( ${RUST_TOOLCHAIN_BASEURL%/}/rust-src-beta.tar.xz -> rust-src-${PV}.tar.xz ) + " +else + # curl -Ls static.rust-lang.org/dist/channel-rust-${PV}.toml | grep "xz_url.*rust-src" + SRC_URI="$(rust_all_arch_uris "rust-${PV}") + rust-src? ( ${RUST_TOOLCHAIN_BASEURL%/}/2026-10-01/rust-src-${PV}.tar.xz ) + " + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +GENTOO_BIN_BASEURI="https://github.com/projg2/rust-bootstrap/releases/download/${PVR}" # omit trailing slash + +DESCRIPTION="Systems programming language from Mozilla" +HOMEPAGE="https://www.rust-lang.org/" + +if [[ ${PV} != *9999* && ${PV} != *beta* ]] ; then + # Keep this separate to allow easy commenting out if not yet built + SRC_URI+=" sparc? ( ${GENTOO_BIN_BASEURI}/rust-${PVR}-sparc64-unknown-linux-gnu.tar.xz ) " + SRC_URI+=" mips? ( + abi_mips_o32? ( + big-endian? ( ${GENTOO_BIN_BASEURI}/rust-${PVR}-mips-unknown-linux-gnu.tar.xz ) + !big-endian? ( ${GENTOO_BIN_BASEURI}/rust-${PVR}-mipsel-unknown-linux-gnu.tar.xz ) + ) + abi_mips_n64? ( + big-endian? ( ${GENTOO_BIN_BASEURI}/rust-${PVR}-mips64-unknown-linux-gnuabi64.tar.xz ) + !big-endian? ( ${GENTOO_BIN_BASEURI}/rust-${PVR}-mips64el-unknown-linux-gnuabi64.tar.xz ) + ) + )" + SRC_URI+=" riscv? ( + elibc_musl? ( ${GENTOO_BIN_BASEURI}/rust-${PVR}-riscv64gc-unknown-linux-musl.tar.xz ) + )" + SRC_URI+=" ppc64? ( elibc_musl? ( + big-endian? ( ${GENTOO_BIN_BASEURI}/rust-${PVR}-powerpc64-unknown-linux-musl.tar.xz ) + ) )" +fi + +LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4" +SLOT="${PV%%_*}" # Beta releases get to share the same SLOT as the eventual stable +IUSE="big-endian +clippy cpu_flags_x86_sse2 doc prefix rust-analyzer rust-src +rustfmt" + +# net-misc/curl is needed for our own bootstrapped rustc, since cross-compiling bundled curl is not supported +RDEPEND=" + >=app-eselect/eselect-rust-20190311 + dev-libs/openssl + net-misc/curl + sys-apps/lsb-release + || ( + llvm-runtimes/libgcc + sys-devel/gcc:* + ) + !dev-lang/rust:stable + !dev-lang/rust-bin:stable +" +BDEPEND=" + prefix? ( dev-util/patchelf ) + verify-sig? ( sec-keys/openpgp-keys-rust ) +" +[[ ${PV} == *9999* ]] && BDEPEND+=" net-misc/curl" + +REQUIRED_USE="x86? ( cpu_flags_x86_sse2 )" + +# stripping rust may break it (at least on x86_64) +# https://github.com/rust-lang/rust/issues/112286 +RESTRICT="strip" + +QA_PREBUILT=" + opt/rust-bin-${SLOT}/bin/.* + opt/rust-bin-${SLOT}/lib/.*.so* + opt/rust-bin-${SLOT}/libexec/.* + opt/rust-bin-${SLOT}/lib/rustlib/.*/bin/.* + opt/rust-bin-${SLOT}/lib/rustlib/.*/lib/.* +" + +# An rmeta file is custom binary format that contains the metadata for the crate. +# rmeta files do not support linking, since they do not contain compiled object files. +# so we can safely silence the warning for this QA check. +QA_EXECSTACK="opt/${PN}-${SLOT}/lib/rustlib/*/lib*.rlib:lib.rmeta" + +VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/rust.asc" + +src_unpack() { + if [[ ${PV} == *9999* ]]; then + # We need to fetch the latest nightly listing and get the apprapriate src_uri for our arch + local rust_bin_url rustc_src_url + # Cut down on webrequests by fetching the nightly toml once + curl -Ls static.rust-lang.org/dist/channel-rust-nightly.toml > "${WORKDIR}/channel-rust-nightly.toml" || + die "Failed to fetch nightly revision info" + rustc_src_url=$(grep 'xz_url.*rust-src' "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2) + + if use rust-src; then + einfo "Using nightly Rust-src from: ${rustc_src_url}" + # We need to fetch the rust-src tarball + einfo "Fetching nightly rust-src tarball ..." + curl --progress-bar -L "${rustc_src_url}" -o "${WORKDIR}/rust-src-${PV}.tar.xz" || + die "Failed to fetch nightly rust-src tarball." + # no verify-sig here, just unpack it + tar -xf "${WORKDIR}/rust-src-${PV}.tar.xz" || die "Failed to unpack nightly rust-src tarball" + fi + + local v + for v in $(multilib_get_enabled_abi_pairs); do + rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))" + rust_bin_url=$(grep "xz_url.*rust-nightly-${rust_target}" "${WORKDIR}/channel-rust-nightly.toml" | cut -d '"' -f 2) + einfo "Using nightly Rust from ${rust_bin_url} for ${rust_target}" + + einfo "Fetching nightly Rust tarball for ${rust_target} ..." + curl --progress-bar -L "${rust_bin_url}" -O || die "Failed to fetch nightly tarball for ${rust_target}" + if use verify-sig; then + einfo "Fetching nightly signature for ${rust_target} ..." + curl --progress-bar -L "${rust_bin_url}.asc" -O || die "Failed to fetch nightly signature for ${rust_target}" + verify-sig_verify_detached "${WORKDIR}/rust-nightly-${rust_target}.tar.xz" \ + "${WORKDIR}/rust-nightly-${rust_target}.tar.xz.asc" + fi + + tar -xf "${WORKDIR}/rust-nightly-${rust_target}.tar.xz" || die "Failed to unpack nightly tarball for ${rust_target}" + done + else + # sadly rust-src tarball does not have corresponding .asc file + # so do partial verification + if use verify-sig; then + for f in ${A}; do + if [[ -f ${DISTDIR}/${f}.asc ]]; then + verify-sig_verify_detached "${DISTDIR}/${f}" "${DISTDIR}/${f}.asc" + fi + done + fi + + default_src_unpack + fi + + # We only want to do this for the native ABI. Non-native ABIs are + # handled differently in multilib_src_install. + case ${PV} in + *9999*) + mv "${WORKDIR}/rust-nightly-$(rust_abi)" "${S}" || die + ;; + *beta*) + mv "${WORKDIR}/rust-beta-$(rust_abi)" "${S}" || die + ;; + *) + mv "${WORKDIR}/rust-${PV}-$(rust_abi)" "${S}" || die + ;; + esac +} + +patchelf_for_bin() { + local filetype=$(file -b ${1}) + if [[ ${filetype} == *ELF*interpreter* ]]; then + einfo "${1}'s interpreter changed" + patchelf ${1} --set-interpreter ${2} || die + elif [[ ${filetype} == *script* ]]; then + hprefixify ${1} + fi +} + +rust_native_abi_install() { + pushd "${S}" >/dev/null || die + local std="$(grep 'std' ./components || die "std not found in components")" + local components=( "rustc" "cargo" "${std}" ) + use doc && components+=( "rust-docs" ) + use clippy && components+=( "clippy-preview" ) + use rustfmt && components+=( "rustfmt-preview" ) + if use rust-analyzer; then + local analysis="$(grep 'analysis' ./components || die "analysis not found in components")" + components+=( "rust-analyzer-preview" "${analysis}" ) + fi + # Rust component 'rust-src' is extracted from separate archive + if use rust-src; then + einfo "Combining rust and rust-src installers" + case ${PV} in + *9999*) + mv -v "${WORKDIR}/rust-src-nightly/rust-src" "${S}" || die + ;; + *beta*) + mv -v "${WORKDIR}/rust-src-beta/rust-src" "${S}" || die + ;; + *) + mv -v "${WORKDIR}/rust-src-${PV}/rust-src" "${S}" || die + ;; + esac + echo rust-src >> ./components || die + components+=( "rust-src" ) + fi + edo ./install.sh \ + --components="$(IFS=,; echo "${components[*]}")" \ + --disable-verify \ + --prefix="${ED}/opt/rust-bin-${SLOT}" \ + --mandir="${ED}/opt/rust-bin-${SLOT}/man" \ + --disable-ldconfig + + docompress /opt/${P}/man/ + + if use prefix; then + local interpreter=$(patchelf --print-interpreter "${EPREFIX}"/bin/bash) + ebegin "Changing interpreter to ${interpreter} for Gentoo prefix at ${ED}/opt/rust-bin-${SLOT}/bin" + find "${ED}/opt/rust-bin-${SLOT}/bin" -type f -print0 | \ + while IFS= read -r -d '' filename; do + patchelf_for_bin ${filename} ${interpreter} \; || die + done + eend $? + fi + + local symlinks=( + cargo + rustc + rustdoc + rust-gdb + rust-gdbgui + rust-lldb + ) + + use clippy && symlinks+=( clippy-driver cargo-clippy ) + use rustfmt && symlinks+=( rustfmt cargo-fmt ) + use rust-analyzer && symlinks+=( rust-analyzer ) + + einfo "installing eselect-rust symlinks and paths" + local i + for i in "${symlinks[@]}"; do + # we need realpath on /usr/bin/* symlink return version-appended binary path. + # so /usr/bin/rustc should point to /opt/rust-bin-/bin/rustc- + local ver_i="${i}-bin-${SLOT}" + ln -v "${ED}/opt/rust-bin-${SLOT}/bin/${i}" "${ED}/opt/rust-bin-${SLOT}/bin/${ver_i}" || die + dosym -r "/opt/rust-bin-${SLOT}/bin/${ver_i}" "/usr/bin/${ver_i}" + done + + # symlinks to switch components to active rust in eselect + dosym -r "/opt/rust-bin-${SLOT}/lib" "/usr/lib/rust/lib-bin-${SLOT}" + dosym -r "/opt/rust-bin-${SLOT}/man" "/usr/lib/rust/man-bin-${SLOT}" + dosym -r "/opt/rust-bin-${SLOT}/lib/rustlib" "/usr/lib/rustlib-bin-${SLOT}" + dosym -r "/opt/rust-bin-${SLOT}/share/doc/rust" "/usr/share/doc/rust-bin-${SLOT}" + + # make all capital underscored variable + local CARGO_TRIPLET="$(rust_abi)" + CARGO_TRIPLET="${CARGO_TRIPLET//-/_}" + CARGO_TRIPLET="${CARGO_TRIPLET^^}" + cat <<-_EOF_ > "${T}/50${P}" + MANPATH="${EPREFIX}/usr/lib/rust/man-bin-${SLOT}" + $(usev elibc_musl "CARGO_TARGET_${CARGO_TRIPLET}_RUSTFLAGS=\"-C target-feature=-crt-static\"") + _EOF_ + doenvd "${T}/50${P}" + + # note: eselect-rust adds EROOT to all paths below + cat <<-_EOF_ > "${T}/provider-${PN}-${SLOT}" + /usr/bin/cargo + /usr/bin/rustdoc + /usr/bin/rust-gdb + /usr/bin/rust-gdbgui + /usr/bin/rust-lldb + /usr/lib/rustlib + /usr/lib/rust/lib + /usr/lib/rust/man + /usr/share/doc/rust + _EOF_ + + if use clippy; then + echo /usr/bin/clippy-driver >> "${T}/provider-${PN}-${SLOT}" + echo /usr/bin/cargo-clippy >> "${T}/provider-${PN}-${SLOT}" + fi + if use rustfmt; then + echo /usr/bin/rustfmt >> "${T}/provider-${PN}-${SLOT}" + echo /usr/bin/cargo-fmt >> "${T}/provider-${PN}-${SLOT}" + fi + if use rust-analyzer; then + echo /usr/bin/rust-analyzer >> "${T}/provider-${PN}-${SLOT}" + fi + + insinto /etc/env.d/rust + doins "${T}/provider-${PN}-${SLOT}" + popd >/dev/null || die +} + +multilib_src_install() { + if multilib_is_native_abi; then + rust_native_abi_install + else + local rust_target version + case ${PV} in + *9999*) + version=nightly + ;; + *beta*) + version=beta + ;; + *) + version=${PV} + ;; + esac + rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))" + dodir "/opt/${P}/lib/rustlib" + cp -vr "${WORKDIR}/rust-${version}-${rust_target}/rust-std-${rust_target}/lib/rustlib/${rust_target}"\ + "${ED}/opt/${P}/lib/rustlib" || die + fi + + # BUG: installs x86_64 binary on other arches + rm -f "${ED}/opt/${P}/lib/rustlib/"*/bin/rust-llvm-dwp || die +} + +pkg_postinst() { + eselect rust update + + if has_version dev-debug/gdb || has_version llvm-core/lldb; then + elog "Rust installs helper scripts for calling GDB and LLDB," + elog "for convenience they are installed under /usr/bin/rust-{gdb,lldb}-${PV}." + fi + + if has_version app-editors/emacs; then + optfeature "emacs support for rust" app-emacs/rust-mode + fi + + if has_version app-editors/gvim || has_version app-editors/vim; then + optfeature "vim support for rust" app-vim/rust-vim + fi +} + +pkg_postrm() { + eselect rust cleanup +}