Rust: add Crate to dbscheme

This commit is contained in:
Arthur Baars
2024-11-29 15:38:19 +01:00
parent 0676c21a4b
commit 75ca04f3dd
16 changed files with 320 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ include("prefix.dbscheme")
File = imported("File", "codeql.files.FileSystem")
@qltest.skip
class Element:
pass
@@ -85,7 +86,8 @@ class Addressable(AstNode):
or `{<block id>}::name` for addressable items defined in an anonymous block (and only
addressable there-in).
""") | rust.detach | ql.internal
crate_origin: optional[string] | desc("One of `rustc:<name>`, `repo:<repository>:<name>` or `lang:<name>`.") | rust.detach | ql.internal
crate_origin: optional[string] | desc(
"One of `rustc:<name>`, `repo:<repository>:<name>` or `lang:<name>`.") | rust.detach | ql.internal
class Resolvable(AstNode):
@@ -109,3 +111,11 @@ class ExtractorStep(Element):
action: string
file: optional[File]
duration_ms: int
class Crate(Element):
name: optional[string]
version: optional[string]
module: optional["Module"]
cfg_options: list[string]
dependencies: list["Crate"]