refactor!: rename proc_macro to avoid conflicts when building std with -Z build-std

This commit is contained in:
Amaan Qureshi 2023-07-19 22:19:43 -04:00
parent c521e9c18e
commit 75e1bcf70a
No known key found for this signature in database
GPG key ID: E67890ADC4227273
3 changed files with 3 additions and 3 deletions

View file

@ -72,7 +72,7 @@ version = "0.4.19"
features = ["std"]
[dev-dependencies]
proc_macro = { path = "src/tests/proc_macro", package = "tree-sitter-tests-proc-macro" }
tree_sitter_proc_macro = { path = "src/tests/proc_macro", package = "tree-sitter-tests-proc-macro" }
rand = "0.8.5"
tempfile = "3.6.0"

View file

@ -14,9 +14,9 @@ use crate::{
test::{parse_tests, print_diff, print_diff_key, strip_sexp_fields, TestEntry},
util,
};
use proc_macro::test_with_seed;
use std::{env, fs};
use tree_sitter::{LogType, Node, Parser, Point, Range, Tree};
use tree_sitter_proc_macro::test_with_seed;
#[test_with_seed(retry=10, seed=*START_SEED, seed_fn=new_seed)]
fn test_corpus_for_bash(seed: usize) {

View file

@ -8,12 +8,12 @@ use crate::{
generate::generate_parser_for_grammar,
parse::{perform_edit, Edit},
};
use proc_macro::retry;
use std::{
sync::atomic::{AtomicUsize, Ordering},
thread, time,
};
use tree_sitter::{IncludedRangesError, InputEdit, LogType, Parser, Point, Range};
use tree_sitter_proc_macro::retry;
#[test]
fn test_parsing_simple_string() {