From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OMIZN7dpSGIYRgEAgWs5BA (envelope-from ) for ; Sat, 02 Apr 2022 17:20:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KEONNLdpSGI6SAAA9RJhRA (envelope-from ) for ; Sat, 02 Apr 2022 17:20:23 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8BB4FA97E for ; Sat, 2 Apr 2022 17:20:23 +0200 (CEST) Received: from localhost ([::1]:40524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nafY6-00081L-HT for larch@yhetil.org; Sat, 02 Apr 2022 11:20:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nafXa-0007zg-3O for guix-devel@gnu.org; Sat, 02 Apr 2022 11:19:50 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:47869) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nafXY-0003Er-2A for guix-devel@gnu.org; Sat, 02 Apr 2022 11:19:49 -0400 Received: from hermia.goebel-consult.de ([46.87.141.69]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MkEdF-1oGppp1BEX-00kie3; Sat, 02 Apr 2022 17:19:12 +0200 Received: from [127.0.0.1] (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id BDBF96210A; Sat, 2 Apr 2022 17:19:17 +0200 (CEST) Message-ID: <2a27dee4-4781-b85e-662a-51ebe3520231@crazy-compilers.com> Date: Sat, 2 Apr 2022 17:19:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: Compiling rust things without cargo (super WIP POC) Content-Language: en-US To: Maxime Devos , guix-devel@gnu.org References: <32ae0e474e295fa7f7052abd1bbb8053d2fddf16.camel@telenet.be> <36c1a8dcb363f8780b45156058ea606d0dd50854.camel@telenet.be> From: Hartmut Goebel Organization: crazy-compilers.com In-Reply-To: <36c1a8dcb363f8780b45156058ea606d0dd50854.camel@telenet.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:AiU8Rpni5olsAsWj8kpg2VLeb6qfGYI1mymazSU5nypg6rdS/Pe 8C7vBvigG7TlXNJf3oHC236fSVvKvnD+wHZ/hkiEuNsc4g+82t2B/SKufDtar0OuzGYQLZP 7ZcZBKwMEsHYO0jyHtM2UvgavC61/Y1FIAILAVn5jGhGNIT0AjKZtL2boNsEZ8v3u/GfPID mTTDVpWUf3/+o3gkwqS/g== X-UI-Out-Filterresults: notjunk:1;V03:K0:ctob9tmTWY0=:vKp88J5d5qRrT2EvmP867C LxfXudDXzz0w1XUgJ0mlDrVG0X/H175syVRmMzDR0tDPq/v4IiUVJLUhxUnUB/6FMJ2kbRgPN mEAE3ldru3FAaWFaNUG3OdCeBXDsaC9OdJOMFVSvKw/k3xr+i4Ts8Ij6SyiNs58Z6fidJ1bgS 6wxnyAPQsCnIDirEATNT5WqZHn639xgAUkWYVTiId5yJmUTF3Fj8jWpCXt1HdIMBviPT2Pkxm boQYLMHTX42f3f+mnRn46AUnG4nniKaBwJ/8eU3zyN08OyLjdqRizGhJ8GpE1PzgS28WCAvWs RF+7BPM/qTUJ+VrW+LbkRTMQW3owi31Ow5DXNh7lkm8hph5x+iHnxW1U4+BqxdV+63TALWBbe D+5d8nCnUkdZltt+46dNT6F8up+UB7h/hIGpf8bkKIBK3laNEFsf4EP+C7456rlteYLPi5i/7 Pr+BYuqyd5bdvFPYnJth4z7KwCzfazQCktzGt3OW9OmIZrvDR3Z3vD+Rok/FqpDOEJ1Q8a0P1 60L9L64oWVU3KIq7cfK9feMOx54tHIxzToT/4/KtI26SduxpbY4n5s7uVNjHC5EVh3uy6VXp1 nRkKEcGkgj+qCVT1X9vSX4f54mtVxkd54oNb9H4r2y32GxzXx5IqCouZPk6FbX3g+yH81wgHM wWnfYuT0gYQAEolbJX7hXntC6lv8Cws1GxV8ruWXET/LvVGK2pKH6qooAMz8BVuqMPnbostUl 5BOjHTEX+GPwIFVP Received-SPF: none client-ip=212.227.126.135; envelope-from=h.goebel@crazy-compilers.com; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Becze Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648912823; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=npNw6qNZAnrotvE8JUhfKYIqxx2pdDoWtlV+2/pyAf8=; b=IhI31BtE40ZPCWYxZdKNLvJpoH9Be0Ctnq6qaGQc52XFhIywt1BvsEVYrArzqEHTuG67uW cRpA98BHaAtDsnGcoZ70nubeO5XyVAbUlGcuC31hpcm5gsXtEdEc85cPDT2p2YNovo7+j/ n0uqu3w9hIgf4Jn0zJfSrf30IsGHeAi3vHNziIJNXx1/Zrms/PVIIW7dUX6dG6yC1xU7A+ RrYnHjVCexXtqfHsyptZNOzA8WZBUM32cmgiz2IY6zhLNo0JqrWkightXf9QP4iwzLbANB 1snWYTgZzYDY8MddeYKxQCWUxHfYjwVS01eRcwqAQyl31/k7SLtr4ZSzirKqDg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648912823; a=rsa-sha256; cv=none; b=qrRsC2iYP/OBhcGN6FVUubdICWRzWGAWnp2rZ5X4T3p/vXawbvzCx1zaEE9kJZjI/6zSrb AHLWZVBQGuVzRiu1YZ6o5eToJ82J7Fvwj9WmmnAyi8jugEyGd39vY+VUHVac5ywwExzF/1 KWFl6lebC+jjwFZpRwgQeD2kK8bRk0moQD/BqNJWQ7FLm35XTidL+URnfsXg7utipqX5qm ct6h+Oew+1VlCRW7+V228gJEGwWHwaA98BS2qQAlnS57MjdjgKMBpLnPti5iRGKJMaOw6u 6CaxWPIfB4Q/z2T/f4/K3BapTqTsSsENxHIFJLhK7988pW1+YwAAWKHz8RA72g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.88 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8BB4FA97E X-Spam-Score: -3.88 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4J+2tZnmmgfF Am 31.03.22 um 22:06 schrieb Maxime Devos: > In my experiments, it looks like the rust compiler actually_does_ > support static libraries, though perhaps cargo doesn't. AFAIU this assumption is correct. > I invite you to take a look at. > It contains a minimal rust library (libhello) and a minimal 'hello > world'-style application that uses 'libhello'. Impressive! > As a next step, maybe I could try writing a Guix package definition for libhello > and hello-oxygen, gradually making things more complicated (macros, transitive > dependencies, some non-toy Rust dependencies, a Guix build system ...)? Here is my challenge :-) : different dependencies per feature, os, target-arch and target-os as well as passing on features to dependencies. -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |