From 7e59ce132303837b05aaa5f173ea2050ac0203f6 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 14 Jul 2022 01:45:28 -0400 Subject: Add basic Rust support Support for packages and third-party imports will need to come later once I figure out how to lookup rust packages by their import statements. Until then, this works to compile "hello world". --- Biz/Namespace.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Biz/Namespace.hs') diff --git a/Biz/Namespace.hs b/Biz/Namespace.hs index 2312271..b9ef994 100644 --- a/Biz/Namespace.hs +++ b/Biz/Namespace.hs @@ -24,7 +24,7 @@ import qualified Data.List as List import qualified Data.List.Split as List import qualified Text.Regex.Applicative as Regex -data Ext = Hs | Scm | Nix | Md | Css | Py | Sh | Keys | Json | None +data Ext = Hs | Scm | Nix | Md | Css | Py | Sh | Keys | Json | None | Rs deriving (Eq, Show, Generic, Aeson.ToJSON) data Namespace = Namespace {path :: [String], ext :: Ext} @@ -87,6 +87,7 @@ reExt = <|> Sh <$ Regex.string "sh" <|> Keys <$ Regex.string "pub" <|> Json <$ Regex.string "json" + <|> Rs <$ Regex.string "rs" -- | The cab dir is for temporary files and build outputs, not for source -- inputs. -- cgit v1.2.3