; Rust import extraction queries
; Captures: @node (use declaration), @source (path)

; use std::collections::HashMap
(use_declaration
  argument: (scoped_identifier) @source) @node

; use foo::bar::{A, B}
(use_declaration
  argument: (scoped_use_list) @source) @node

; use foo::*
(use_declaration
  argument: (use_wildcard) @source) @node

; use foo as bar
(use_declaration
  argument: (use_as_clause) @source) @node

; use foo
(use_declaration
  argument: (identifier) @source) @node

; extern crate foo
(extern_crate_declaration
  name: (identifier) @source) @node
