From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id L1giNPPejV9KWwAA0tVLHw (envelope-from ) for ; Mon, 19 Oct 2020 18:46:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UIJTL/PejV+pdQAAB5/wlQ (envelope-from ) for ; Mon, 19 Oct 2020 18:46:11 +0000 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 CC59F94023B for ; Mon, 19 Oct 2020 18:46:10 +0000 (UTC) Received: from localhost ([::1]:48104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUaAb-0003YI-N6 for larch@yhetil.org; Mon, 19 Oct 2020 14:46:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUaAU-0003YB-9c for guix-patches@gnu.org; Mon, 19 Oct 2020 14:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59054) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUaAT-0006vj-Vg for guix-patches@gnu.org; Mon, 19 Oct 2020 14:46:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kUaAT-0006YA-Ug for guix-patches@gnu.org; Mon, 19 Oct 2020 14:46:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42885] Merge wip-swc Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Oct 2020 18:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42885 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ricardo Wurmus Cc: 42885@debbugs.gnu.org, Brendan Tildesley Received: via spool by 42885-submit@debbugs.gnu.org id=B42885.160313314023920 (code B ref 42885); Mon, 19 Oct 2020 18:46:01 +0000 Received: (at 42885) by debbugs.gnu.org; 19 Oct 2020 18:45:40 +0000 Received: from localhost ([127.0.0.1]:42367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUaA7-0006DF-OJ for submit@debbugs.gnu.org; Mon, 19 Oct 2020 14:45:40 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:47072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUaA5-00069U-1I for 42885@debbugs.gnu.org; Mon, 19 Oct 2020 14:45:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zlpPRylyTk6oH26FkjP5JCKwA5T7Zg0ZHNEjBf7ffEM=; b=OMZ8YxWLmoIgyUSN5oxAznkoF FYGm7eo4vVb1oP8mn4rVl+6A/cco52zuDxiZ0r+Zz0XzaQ+PRmMflNcys9PoFl18VQ2ztRaaIx2/w fhw+gQS3nrYuGVVCBqO77XPzO1n/VP6LxHrzPOrk4o4PlpMM1piQVVVWfWQT4TNKAcxlxZ9iBD0hL wRJtHTfI2Oc3wZQY05yjLr3phDz88odmrWK92WqwP6qLdYahcOKvA/MG8nh7WTFP4iLSWKhQJyO31 V58ufI+icgQFiua1VFylcOaHG4g1mRwyPjSgg+riF9V66Xh5VcxmSPkhf/0zaiC/83z/8y/WHgomJ SW5qKTAdw==; Received: from [192.168.2.1] (helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kUa7a-001Wyc-7J; Tue, 20 Oct 2020 00:13:02 +0530 From: Arun Isaac In-Reply-To: <87blh5yg6o.fsf@elephly.net> References: <6F7B2CEB-1A83-4B01-B815-1529359169E1@brendan.scot> <87eenwzgoa.fsf@systemreboot.net> <87y2lpvrrd.fsf@gnu.org> <87zh65csve.fsf@systemreboot.net> <871rjhfhtt.fsf@elephly.net> <87y2lj1moa.fsf@systemreboot.net> <877dt3ct7u.fsf@elephly.net> <87sgbq20kw.fsf@systemreboot.net> <874knwbtgv.fsf@systemreboot.net> <87a6xove66.fsf@elephly.net> <87y2l3zaa4.fsf@systemreboot.net> <87pn6eid4c.fsf@systemreboot.net> <7d55f6f8-ff58-c548-8bec-8508a71be2cf@brendan.scot> <87ft6zx1rh.fsf@systemreboot.net> <87a6wr29i2.fsf@systemreboot.net> <87blh6q835.fsf@systemreboot.net> <87blh5yg6o.fsf@elephly.net> Date: Tue, 20 Oct 2020 00:15:19 +0530 Message-ID: <87zh4i6on4.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=systemreboot.net header.s=default header.b=OMZ8YxWL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.41 X-TUID: GEkkr6VPXiGW --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain > I looked at this today, but my rust-foo is very, very weak. > I tried to compile this: > > https://github.com/swc-project/swc/blob/master/examples/usage.rs I managed to get this working. Please see the attached tarball. The steps to test are: Unpack the tarball and change directory. Clone the swc git repo. Build and run using cargo. --8<---------------cut here---------------start------------->8--- tar xvf miniswc.tar.gz cd miniswc git clone https://github.com/swc-project cargo run --8<---------------cut here---------------end--------------->8--- src/main.rs in the tarball is a slightly modified version of examples/usage.rs in the swc git repo. On running, it transpiles the file foo.ts and outputs to stdout. The next step is to see if this is any good for building MathJax from source. Cheers! --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=miniswc.tar.gz Content-Transfer-Encoding: base64 H4sIAAAAAAAAA+2W3W/bNhDA88y/gtOAQQJUyfJHPMhdsSB76B6KFQiKPgSBwVInm6tECiS1zAj8 v+9IyR/NhgXD2nQY+HuwzOPxeCfy7tQKKcw9z6+Z3qjMqra5+OxMkMv53D2L5WIyPOeXXu6YLy8v itlyPpstFtMp6hWz2XJ2QSef35U/0xvLNKUXTPfy7/VAm+dw6Hm57Rj/yDZwRyRrgf5Ao3a4ERH5 DQMWSjrZJCuySURYb7dKG5TcRlf4vujPhjFOX7p3J9zfH83OWGg1fFDKZhLsq+iOQCXsaGc6Kb6P CPmW3gDQVmmgH2FnKJMVtVsQmlZQ4/ZOHaWWbq3tTJnnleKZxpN60TC5yZTe5Nzd11xDDRokh7xl UtRgbLa1bUPIbQUdyAqnBJg7gvHg9g8ds1vnRpa7APdOvOaqbb1zn87mgzxKaQ3M9hqGqK3dvYBW WAs6utuTr316/57xtPNaYfZ/ofv9ZP4Xy0P+F7PLJeb/dLFchPx/DoTEq1wzDvQdBkgfCKWuEJTU WC3kZoVjUZVU9u0H0CuyJ4Q3zBivfcW56qV9chEOOSa01T23SsfnqumZYuINUawEwmRjNXKP1Ukq KpSJykn23hdnlrqjKQf/cQXcnzsXR2963W13mMhFsiINYFGBplHvlW6csei1G1E/jFb/g4T+hxzy 32iONVTI7Atc8ifyv5hNpsf+v1j6/r+YFiH/nwMMC1OxKkvf/sryLf6m1OwkL8srzfcr4jXucfhg oKlTl8q12JTlL51v0yeNsZWiok9Y0Bq/FXB0rRqlr/2qlL7GXt+A3qde50b1msMb1hE0Q2pJ3RWM D4XAJStvMUnRkbJ8eVR+VZb4ncD6xsbJ6qi5HSwf1LEOxONmZXkv7HaNvXs99u7Yr3KcOYcB91al xymsV3Aa1awxZ8Mb1ULM24w3SkKcJMNMcuaP++Lw7+1atZ3wbjifTmvSg8tHI8Pio4Xaxc7b455Z o1i1rtFW/NYflrMXDZ07SpKTHvzeAcfSVzPUxU8rRd1K6lZGia/HlHZYfu03cfSwj05RITzrtOJg zPpXM+x1PuvfRJs+Fn03Xobx4B6RZT8Nx3V2bo/19p/YTP4ihNGtMYqMqwoS15C+dgYFAoFAIBAI BAKBQCAQCAQCgUAgEAgEAv8d/gBrx1xuACgAAA== --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFPBAEBCAA5FiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl+N3r8bHGFydW5pc2Fh Y0BzeXN0ZW1yZWJvb3QubmV0AAoJEC4l7othgCuzEmEIAJ7nljlqok3eJ34nmbJG K5Hj5CD84jn32k1YRod39UxDaUyyKu3tuCdJXnjTYyEgmY62DV47Gq7JXe9LGwnx EkfUsszEay8pyHlc3jvDF0bLRtwZ3e29k9wH5x6CtBQeBQK8OxTdYPaL6XoT9tJr QMZtDbtv6kuTUoXojbTmNgpDi6JviYcLWJtlCb9mlCHIzZlVIjqWFbYqvTvU1DAG nv6Cq04xydQ8JXXs1W8AA9VVLCG6ZbZg29sJ2+KTRyeQN2TLxH2UTh345jX0EB3d EiTvjOCiBOwGhd8v5eMeHaP4PV3+8omQnqlyPlsZsLHMYesog8zSP7KkygXBaG/2 14g= =jjSw -----END PGP SIGNATURE----- --==-=-=--