local git_ref = '2c9941d4a358839918fac21d20fc8fef0e1ad05f'
local modrev = 'scm'
local specrev = '1'

local repo_url = 'https://github.com/rouge8/neotest-rust'

rockspec_format = '3.0'
package = 'neotest-rust'
version = modrev ..'-'.. specrev

description = {
  summary = 'Neotest adapter for Rust, using cargo-nextest.',
  detailed = '',
  labels = { 'neovim' } ,
  homepage = 'https://github.com/rouge8/neotest-rust',
  license = 'MIT'
}

dependencies = { 'lua >= 5.1', 'neotest', 'tree-sitter-rust' } 

test_dependencies = { }

source = {
  url = repo_url .. '/archive/' .. git_ref .. '.zip',
  dir = 'neotest-rust-' .. '2c9941d4a358839918fac21d20fc8fef0e1ad05f',
}

if modrev == 'scm' or modrev == 'dev' then
  source = {
    url = repo_url:gsub('https', 'git')
  }
end

build = {
  type = 'builtin',
  copy_directories = { },
}
