Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused dependencies #597

Merged
merged 2 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 0 additions & 79 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ proc-macro = true
[dependencies]
comrak = { version = "0.28.0", default-features = false }
convert_case = "0.6.0"
once_cell = "1.20.1"
proc-macro2 = "1"
quote = "1"
regex = "1.11.0"
Expand Down
4 changes: 2 additions & 2 deletions macro/src/dialect/operation/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ use crate::dialect::{
operation::operation_field::OperationField,
utility::{generate_result_type, sanitize_snake_case_identifier},
};
use once_cell::sync::Lazy;
use proc_macro2::{Span, TokenStream};
use quote::quote;
use std::collections::HashMap;
use std::sync::LazyLock;
use syn::{parse_quote, Ident, Type};
use tblgen::{error::TableGenError, Record};

Expand All @@ -28,7 +28,7 @@ macro_rules! melior_attribute {
};
}

static ATTRIBUTE_TYPES: Lazy<HashMap<&'static str, &'static str>> = Lazy::new(|| {
static ATTRIBUTE_TYPES: LazyLock<HashMap<&'static str, &'static str>> = LazyLock::new(|| {
let mut map = HashMap::new();

macro_rules! initialize_attributes {
Expand Down
4 changes: 2 additions & 2 deletions macro/src/utility.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use once_cell::sync::Lazy;
use regex::{Captures, Regex};
use std::sync::LazyLock;

static NAME_PATTERN: Lazy<Regex> = Lazy::new(|| {
static NAME_PATTERN: LazyLock<Regex> = LazyLock::new(|| {
Regex::new(r#"(bf_16|f_16|f_32|f_64|i_8|i_16|i_32|i_64|float_8_e_[0-9]_m_[0-9](_fn)?)"#)
.unwrap()
});
Expand Down
2 changes: 0 additions & 2 deletions melior/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ keywords = ["mlir", "llvm"]
ods-dialects = []

[dependencies]
dashmap = "6.1.0"
melior-macro = { version = "0.12.0", path = "../macro" }
mlir-sys = "0.3.0"
once_cell = "1"

[dev-dependencies]
indoc = "2.0.5"
Expand Down