diff options
author | Ben Sima <ben@bsima.me> | 2022-07-14 01:45:28 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-07-17 19:21:12 -0400 |
commit | 7e59ce132303837b05aaa5f173ea2050ac0203f6 (patch) | |
tree | c815a868136e8d725e3d429f504e91fc05c34dd4 /Biz/Namespace.hs | |
parent | 973e67f109f634ce347a1894628a8d551f0ccfbd (diff) |
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".
Diffstat (limited to 'Biz/Namespace.hs')
-rw-r--r-- | Biz/Namespace.hs | 3 |
1 files changed, 2 insertions, 1 deletions
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. |