cabal-version:       2.4
name:                tree-sitter-rust
version:             0.1.0.1
synopsis:            Tree-sitter grammar/parser for Rust
description:         This package provides a parser for Rust suitable for use with the tree-sitter package.
license:             BSD-3-Clause
homepage:            https://github.com/tree-sitter/haskell-tree-sitter/tree/master/tree-sitter-rust
maintainer:          rewinfrey@github.com
copyright:           2020 GitHub
category:            Tree-sitter, Rust
build-type:          Simple
data-files:          vendor/tree-sitter-rust/src/node-types.json
                   , vendor/tree-sitter-rust/corpus/*.txt
extra-source-files:  ChangeLog.md

common common
  default-language: Haskell2010
  ghc-options:
    -Weverything
    -Wno-all-missed-specialisations
    -Wno-implicit-prelude
    -Wno-missed-specialisations
    -Wno-missing-import-lists
    -Wno-missing-local-signatures
    -Wno-monomorphism-restriction
    -Wno-name-shadowing
    -Wno-safe
    -Wno-unsafe
  if (impl(ghc >= 8.6))
    ghc-options: -Wno-star-is-type
  if (impl(ghc >= 8.8))
    ghc-options: -Wno-missing-deriving-strategies
  if (impl(ghc >= 8.10))
    ghc-options:
      -Wno-missing-safe-haskell-mode
      -Wno-prepositive-qualified-module

library
  import: common
  exposed-modules:     TreeSitter.Rust
  autogen-modules:     Paths_tree_sitter_rust
  other-modules:       Paths_tree_sitter_rust
  build-depends:       base >= 4.12 && < 5
                     , tree-sitter ^>= 0.9.0.0
  Include-dirs:        vendor/tree-sitter-rust/src
  install-includes:    tree_sitter/parser.h
  c-sources:           vendor/tree-sitter-rust/src/parser.c
                     , vendor/tree-sitter-rust/src/scanner.c
  extra-libraries:     stdc++

source-repository head
  type:     git
  location: https://github.com/tree-sitter/haskell-tree-sitter