  Forthcoming astronomical imaging surveys will use weak gravitational lensing
shear as a primary probe to study dark energy, with accuracy requirements at
the 0.1% level. We present an implementation of the Metadetection shear
measurement algorithm for use with the Vera C. Rubin Observatory Legacy Survey
of Space and Time (LSST). This new code works with the data products produced
by the LSST Science Pipelines, and uses the pipeline algorithms when possible.
We tested the code using a new set of simulations designed to mimic LSST
imaging data. The simulated images contained semi-realistic galaxies, stars
with representative distributions of magnitudes and galactic spatial density,
cosmic rays, bad CCD columns and spatially variable point spread functions.
Bright stars were saturated and simulated ``bleed trails'' were drawn. Problem
areas were interpolated, and the images were coadded into small cells,
excluding images not fully covering the cell to guarantee a continuous point
spread function. In all our tests the measured shear was accurate within the
LSST requirements.
