Skip to content

Commit

Permalink
make rust analyzer somewhat kind of maybe work
Browse files Browse the repository at this point in the history
  • Loading branch information
corwinkuiper committed Sep 2, 2024
1 parent 856dca6 commit 9812795
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rust-analyzer.files.excludeDirs": [
"dofus_items/src/data"
]
}
3 changes: 3 additions & 0 deletions dofus_items/src/data/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use super::*;

pub const ITEMS: Items = include!(concat!(env!("OUT_DIR"), "/compiled_items.rs"));
10 changes: 3 additions & 7 deletions dofus_items/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use std::ops::Index;

mod data;

use dofus_characteristics::*;
use serde::{Deserialize, Serialize};

Expand Down Expand Up @@ -108,10 +110,4 @@ impl Set {
}
}

// pub static ITEMS: Items = Items {
// items: &[],
// sets: &[],
// item_types: &[&[], &[], &[], &[], &[], &[], &[], &[], &[], &[]],
// };

pub static ITEMS: Items = include!(concat!(env!("OUT_DIR"), "/compiled_items.rs"));
pub static ITEMS: Items = data::ITEMS;

0 comments on commit 9812795

Please sign in to comment.