deps-bundler
Gemfile support for deps-lsp.
This crate is part of the deps-lsp workspace. It provides Bundler-specific functionality including Gemfile DSL parsing, dependency extraction, and rubygems.org registry integration, and implements deps_core::Ecosystem.
Features
- Gemfile parsing — Parse
Gemfilewith position tracking via a regex-based DSL parser - Lock file parsing — Extract resolved versions from
Gemfile.lock - rubygems.org registry — HTTP client for version lookups and package search
- Version resolution — Ruby-aware version matching with pessimistic operator (
~>) - Dependency sources — Support for registry, git, path, and github dependencies
- Group handling — Handle
:development,:test,:productiongroups
Installation
[]
= "0.9.3"
[!IMPORTANT] Requires Rust 1.89 or later.
Usage
use ;
let result = parse_gemfile?;
let registry = new;
let versions = registry.get_versions.await?;
Supported Gemfile syntax
source
group :development, :test do
end