Depends on the age of the Trek frame, assuming it comes with a shock and is a headset included?
Is it a bigger frame with a longer headtube, will the fork steerer be long enough?
Check the BB, should be threaded, and rear axle, either QR or bolted.
Front mech could have the same mounting and you may need a seatpost but they are cheap enough if you do need them.
IMO the frame is scrap, latter models were overbuilt to compensate and are generally on the heavy side. You could get a bit of money back selling the swing arm and shock if they are in decent condition.