Skip to main content

Crate deps_bundler

Crate deps_bundler 

Source
Expand description

Gemfile parsing and rubygems.org integration.

This crate provides Bundler-specific functionality for the deps-lsp server, including Gemfile DSL parsing, dependency extraction, and rubygems.org registry integration.

§Features

  • Parsing Gemfile dependencies with position tracking
  • Fetching version data from rubygems.org API
  • Supporting registry, git, path, and github dependencies
  • Group handling (:development, :test, :production)
  • Implementing deps-core traits for generic LSP handlers

§Examples

use deps_bundler::{BundlerDependency, RubyGemsRegistry};

// Types are re-exported for convenience
let _deps: Vec<BundlerDependency> = vec![];

Re-exports§

pub use ecosystem::BundlerEcosystem;
pub use error::BundlerError;
pub use error::Result;
pub use formatter::BundlerFormatter;
pub use lockfile::GemfileLockParser;
pub use parser::BundlerParseResult;
pub use parser::BundlerParser;
pub use parser::parse_gemfile;
pub use registry::RubyGemsRegistry;
pub use registry::gem_url;
pub use types::BundlerDependency;
pub use types::BundlerVersion;
pub use types::DependencyGroup;
pub use types::GemInfo;

Modules§

ecosystem
Bundler ecosystem implementation for deps-lsp.
error
Errors specific to Bundler/Ruby dependency handling.
formatter
Version formatting for Bundler ecosystem.
lockfile
Gemfile.lock file parsing.
parser
Gemfile DSL parser with position tracking.
registry
rubygems.org registry client.
types
Domain types for Bundler dependencies.
version
Version comparison utilities for Ruby gems.

Enums§

DependencySource
Dependency source location (shared across all ecosystems).